?? check.asp
字號:
<!--#include file=conn.asp-->
<%
dim sql
dim username
dim password
username=replace(trim(request("username")),"'","")
password=replace(trim(Request("password")),"'","")
set rs=server.createobject("adodb.recordset")
sql="select * from admin where password='"&password&"' and username='"&username&"'"
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("password") then
session("admin")=rs("username")
rs.close
set rs=nothing
Response.Redirect "admin.asp"
end if
end if
rs.close
set rs=nothing
%>
<html>
<head>
<link rel='stylesheet' href='style.css'>
</head>
<body>
<br><br><br>
<table align='center' width='300' border='0' cellpadding='4' cellspacing='0' class='border'>
<tr >
<td height='15' colspan='2' align="center" class='title'>操作: 確認身份失敗!</td>
</tr>
<tr>
<td height='23' colspan='2' align="center" class='tdbg'> <br>
<br>
用戶名或密碼錯誤?。?!<br>
<br> <a href='javascript:onclick=history.go(-1)'>【返回】</a> <br>
<br></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -