一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp判断用户是否登陆

时间:2008-10-14 编辑:简简单单 来源:一聚教程网

dim username,password
username=session("user")
password=session("pwd")
if reqeust("id")<>username then
response.write ""
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判断用户是否登陆

热门栏目