📄 check.asp
字号:
<%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"ctrl.asp"
End If
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -