ASP简单登陆页面怎么实现登陆次数和访问时
1个回答
展开全部
Dim Admin,Pwd
简单点
Admin = request.form("username")
pwd = request.form("password")
Rs.Open "Select u_name,u_password From M_manager",Conn,1,1
If Rs("u_name") <> Admin Then
response.write "管理员帐号错误!
ElseIf Rs("u_password") <> md5(Psw) Then
response.write "管理员密码错误!
Else
Session("m_Admin")=Rs("u_name")
End If
Rs.Close
Response.Redirect("Index.asp")
简单点
Admin = request.form("username")
pwd = request.form("password")
Rs.Open "Select u_name,u_password From M_manager",Conn,1,1
If Rs("u_name") <> Admin Then
response.write "管理员帐号错误!
ElseIf Rs("u_password") <> md5(Psw) Then
response.write "管理员密码错误!
Else
Session("m_Admin")=Rs("u_name")
End If
Rs.Close
Response.Redirect("Index.asp")
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询