?? login.asp
字號:
<!-- #include file="admin.asp" -->
<%
dim username,password
if request("username") = "" and request("password") = "" then
response.redirect "index.asp"
else
username = request("username")
password = request("password")
set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from admin where id = '"&username&"' and password = '"&password&"'"
rs.open sql,conn,1,3
if rs.eof then
session("login") = "no"
else
session("login") = "yes"
session("id") = rs("id")
end if
response.redirect "index.asp"
end if
%>
<% rs.close %>
<% conn.close %>
<% set rs = nothing %>
<% set conn = nothing %>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -