<%dim rs
set rs=server.createobject("adodb.recordset")
%><title>注册判断</title>
rs.source "select * from information where name='"&name&"'"and password='"&password&"'",conn,1,3
rs.open
if not rs.eof then
if password=rs("password") then
session("name")=ok
Response.write("<script>alert('登陆成功');location.href="登录成功.asp"</script>" )
else
response.write ("<script>alert('用户密码错误');location.href('会员登录.asp')</script>")
end if
end if
if rs.eof then
response.write ("<script>alert('用户帐号错误');location.href('会员登录.asp')</script>")
end if
set rs=nothing
rs.close
好像上面那里出错了,我的帐号和密码输入不对,都可以登录成功,那位大大来帮下忙!谢谢啦~~