第一次测试

别说谁变了你拦得住时间么 提交于 2019-12-23 19:33:34

的是撒的撒的实打实

View Code
End If 

if Instr(UserName,">")>0 or Instr(UserName,"<")>0 or Instr(UserName,"=")>0 or Instr(UserName,"%")>0 or Instr(UserName,chr(32))>0 or Instr(UserName,"?")>0 or Instr(UserName,"&")>0 or Instr(UserName,";")>0 or Instr(UserName,",")>0 or Instr(UserName,"'")>0 or Instr(UserName,chr(34))>0 or Instr(UserName,chr(9))>0 or Instr(UserName,"")>0 or Instr(UserName,"$")>0 then 
Response.Write ("<script>alert('登陆失败!\n\n错误原因:会员含有非法字符!');history.back();</script>") 
Response.end 
else 
UserName=Trim(UserName) 
end if 

set rs=server.createobject("adodb.recordset") 
sql="select * from admin where UserName='"&UserName&"'" 
rs.open sql,conn,1,3 
if rs.eof then 
Response.Write ("<script>alert('登陆失败!\n\n错误原因:帐号或密码错误。');window.location='Login.asp';</script>") 
Response.end 
else 
if rs("PassWord")<>PassWord then 
rs.close 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!