📄 login.asp
字号:
<!--#include file="conn.asp"-->
<%
passcode=Cint(request.form("passcode"))
Customer=request.Form("Customer")
Password=request.Form("Password")
if Customer="" then
response.Write "<script LANGUAGE='javascript'>alert('用户名不能为空!');history.go(-1);</script>"
response.end
end if
if Password="" then
response.Write "<script LANGUAGE='javascript'>alert('密码不能为空!');history.go(-1);</script>"
response.end
end if
sql="select * from user where Customer='"&Customer&"' and Password='"&Password&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if Password<>rs("Password") then
response.Write "<script LANGUAGE='javascript'>alert('密码错误请重新输入');history.go(-1);</script>"
response.end
end if
session("Customer")=Customer
session("Password")=Password
%>
<html>
<head>
<meta http-equiv="refresh" content="0; url=index.asp">
<title>无标题文档</title>
</head>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -