📄 check.asp
字号:
<%
Name=Request.Form("name")
Password=Request.Form("password")
%>
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("KYDB.mdb")
set rs= server.createobject("adodb.recordset")
SQL="SELECT * FROM user1 WHERE UserName='"& Name &"'"
Set LogonRS= conn.Execute(SQL)
IF LogonRS.Eof Then
Response.Redirect "index.asp"
Else
IF Password=LogonRS("UserPassword") Then
Session("User")=LogonRS("UserName")
Response.Redirect "main.asp"
Else
Response.Redirect "index.asp"
End IF
End IF
Set logonRS=Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -