?? admin.asp
字號:
<!--#include file="conn.asp"-->
<%
UserName=trim(request("UserName"))
PassWord=trim(request("PassWord"))
if username="" and password="" then
response.write"<script>alert('參數錯誤');location.href='javascript:history.back()'</script>"
response.end
end if
set rs=server.CreateObject("adodb.recordset")
sql="select admin,pass from admin where admin="&username
rs.open sql,conn,1,1
if rs.eof then
response.write "<script>alert('用戶名密碼錯誤');location.href='javascript:history.back()'</script>"
response.end
end if
if password<>rs("pass") then
response.write "<script>alert('用戶名密碼錯誤');location.href='javascript:history.back()'</script>"
response.end
end if
session("bxgzsadmin")=username
session("bxgzspass")=password
response.redirect "index.asp"
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -