求ASP最简单的登陆页面代码!
求登陆页面最简单的登陆代码,不需要 验证码的,但是连接数据库了的,谢谢了,我的有问题,我想找个参考下
<!--#include file="lianku.asp"--> <% id=request.cookies("id") mingcheng=request.form("mingcheng") mima=request.form("mima") %> <% sql="select * from zhuce1 where mingcheng='"&mingcheng&"'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof then response.write("<script language='javascript'> alert('用户名不对');location.href='index.asp'</script>") else if rs("mima")<>mima then response.write("<script language='javascript'> alert('密码不对');location.href='index.asp'</script>") else response.Cookies("mingcheng")=rs("mingcheng") response.write("<script language='javascript'> alert('登陆成功');</script>") response.redirect(id) %> <% end if end if %>这是我一个登陆的处理页面!希望对你有帮助.....