📄 checklogin.asp
字号:
<!--#include file="conn.asp"-->
<%var lg=Server.CreateObject("ADODB.Recordset");
var lgsql="select * from user where username='"+Request("user")+"' and password='"+Request("pwd")+"'";
lg.Open(lgsql,conn,3,3);
if(lg.EOF)
{ Session("err")="用户名或者密码错误"
Response.Redirect("err.asp")
}
else
{
Session("login")=true;
Session("user")=Server.HTMLEncode(Request("user"));
Response.Redirect("index.asp");
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -