当前位置:编程学习 > asp >>

asp判断用户是否登陆

dim username,password
username=session("user")
password=session("pwd")
if reqeust("id")<>username then
response.write "<script>alert('非法操作');window.location.href='index.asp';</script>"
response.end
end if
set rs=conn.execute("select * from [user] where name='"&reqeust("id")&"' and pwd='"&password&"'")
if rs.eof then
response.redirect "login.asp"
else
...
end if
rs.close

asp判断用户是否登陆

补充:asp教程,ASP入门
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,