<script language='JavaScript'>" & "Alert('用户名含有非法字符,请重新输入!');"
IfRequest("username")=""andRequest("userpwd")=""thenResponse.Write"<scriptlanguage='J...
If Request("username")="" and Request("userpwd")="" then
Response.Write "<script language='JavaScript'>"
Response.Write "Alert('用户名和密码不能为空');"
Response.Write "</Script>"
Response.End
else
username=trim(Request("username"))
userpwd=trim(Request("userpwd"))
For i=1 to len(username)
pass=mid(userpwd,i,1)
If Pass="" or Pass="%" or Pass="!" or Pass="~" or Pass="`" or Pass="@" or Pass="#" or Pass="$" or Pass="%" or Pass="^" or Pass="&" or Pass="*" or Pass="-" Then
Response.Write "<script language='JavaScript'>" & "Alert('用户名含有非法字符,请重新输入!');" & "History.Back()" & "</Script>"
Response.End
End if
Next
End If
没有提示错误也没有弹出窗口,请问是不是浏览器的问题 展开
Response.Write "<script language='JavaScript'>"
Response.Write "Alert('用户名和密码不能为空');"
Response.Write "</Script>"
Response.End
else
username=trim(Request("username"))
userpwd=trim(Request("userpwd"))
For i=1 to len(username)
pass=mid(userpwd,i,1)
If Pass="" or Pass="%" or Pass="!" or Pass="~" or Pass="`" or Pass="@" or Pass="#" or Pass="$" or Pass="%" or Pass="^" or Pass="&" or Pass="*" or Pass="-" Then
Response.Write "<script language='JavaScript'>" & "Alert('用户名含有非法字符,请重新输入!');" & "History.Back()" & "</Script>"
Response.End
End if
Next
End If
没有提示错误也没有弹出窗口,请问是不是浏览器的问题 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询