解决这个问题的办法:
.
.
.
'username为用户名,先从数据库中找到此用户名
sql="select * from password where namexm='"&username&"'"
set rs=conn.execute(sql)
if not rs.eof then
'再从数据库中取出密码和用户提交的密码进行比较
if rs("pass")<>userpass then
message="呵呵,你的帐号或者密码不符,检查一下吧!"
response.redirect"login.asp?message="&message
response.end
end if
——————————