check.asp
上传用户:shxinnian
上传日期:2013-01-14
资源大小:155k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Windows_Unix
- <% @language="vbscript" %>
- <%Response.buffer="True"%>
- <!--#include file="conn.asp"-->
- <%
- dim rs,sql
- dim uID,pwd
- uID=request.form("uID")
- pwd=request.form("pwd")
- set rs=Server.CreateObject("Adodb.Recordset")
- sql="select uID,pwd,rname from member where uID='"&uID&"'"
- rs.open sql,conn,1,1
- If rs.eof Then
- response.write "<script>alert('无此会员名,请返回首页登记新会员!');history.back();</Script>"
- response.end
- End If
- dim dbpwd,rname
- dbpwd=rs("pwd")
- rname=rs("rname")
- conn.close
- set conn=nothing
- rs.close
- set rs=nothing
- If dbpwd<>pwd Then
- response.write "<script>alert('密码错误,请返回从新填写!');history.back();</Script>"
- response.end
- Else
- Response.cookies("member")=true
- Response.cookies("uID")=uID
- Response.cookies("rname")=rname
- Response.redirect"user_ctrl_panel.asp"
- End If
- %>
- <html>
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- </head>
- <body>
- </body>
- </html>