nginx lua waf:myform表单提交后不自检请大虾们帮忙看看

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 08:49:26
myform表单提交后不自检请大虾们帮忙看看

<form method = "post" action = "zhucesave.asp" name = "myform" onsubmit = "return ChkFields()">

<p align="left"> <FONT color=#cc0000>*</FONT> 用 户 名:
<input name="username" type="text" value="" size="20">
请使用英文和数字,并以英文开头,不超过20位</p>
<p align="left"> <FONT color=#cc0000>*</FONT> 密 码:
<input name="pwd" type="password" size="12">
请使用5--12位 </p>
<p align="left"><FONT color=#cc0000>*</FONT> 确认密码:
<input name="pwd2" type="password" size="12">
请再输入一次您以上填写的密码</p>
<p align="left"><FONT color=#cc0000>*</FONT> 电子信箱:
<input name="Email" type="text" size="12">
输入您安全的Email信箱</p>
<p align="left"><FONT color=#cc0000>* </FONT>电 话:
<input name="phone" type="text" size="11">
中奖后方便我们和您取得有效的联系</p>
<p align="left"><FONT color=#cc0000>*</FONT> 介绍人ID:
<input name="jsname" type="text" size="8">
</p>
<p align="left"><FONT color=#cc0000>* </FONT>验 证 码:
<input name="textfield" type="text" size="4">
请输入右边的验证码:
<img name="yzm" src="safecode.asp" width="119" height="26" alt="验证码不显示请刷新"> </p>
<div align="left"> 您是否同意<a href="yiliufuwu.htm">《亿流免费抽奖服务条款》</a>
</div>
<div align="left">
<blockquote>
<input name="argee" type="radio" value="1" checked>
同意
<input type="radio" name="argee" value="0">
不同意 </blockquote>
</div>
<blockquote>
<div align="center">
<input type = "submit" value = "提交"><input type = hidden name = flag value = new>

<input type="reset" name="Submit" value="取消">
</div>
</blockquote>
<p align="left">  </p>
</form>
<script language = "VBScript">
function ChkFields()
if document.myform.UserName.value = "" Then window.alert("请输入用户名") myform.UserName.focus() return false
End If

if document.myform.Pwd.value.Length < 5 ordocument.myform.Pwd.value.Length > 12 Then window.alert("请使用5--12位密码") myform.UserName.focus() return false
End If
if document.myform.Pwd.value ="" Then window.alert("请输入新密码") myform.UserName.focus() return false
End If

if document.myform.Pwd2.value ="" Then window.alert("请确认新密码") myform.UserName.focus() return false
End If
if document.myform.Pwd.value <> document.myform.Pwd2.value Then
window.alert("两次输入的新密码必须相同") myform.UserName.focus() return false
End If
return true
End Function
</script>