?? checklogin.asp
字號:
<!-- #include file="conn.asp" -->
<!-- #include file="inc/md5.asp" -->
<%
nowusername=request.form("username")
nowpassword=request.form("password")
sql="select * from login where username='"&nowusername&"' and password='"&md5(nowpassword)&"'"
set rs=conn.execute(sql)
if rs.eof then
%>
<script language=javascript>
alert('用戶名稱或口令錯誤!')
window.history.go(-1)
</script>
<%
response.end
end if
session("username")=nowusername
response.redirect "main.asp"
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -