?? login.asp
字號:
<!--#include file="conn.asp"-->
<%
dim sql
dim rs
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&"'"
' response.write ""&sql&""
' response.end
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("password") then
response.cookies("users")("username")=username
response.cookies("users")("userpass")=password
Session("open")=True
Response.Redirect "main.asp"
end if
end if
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
<html>
<head>
<title>更新登陸</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style type="text/css">
<!--
input {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
}
table {
font-size: 9pt;
}
-->
</style>
</head>
<body bgColor=#ffffff leftMargin=0 topMargin=0>
<br>
<br><br>
<form method="post">
<table border="0" cellspacing="1" cellpadding="2" bordercolordark="#FFFFFF" bordercolorlight="#88E8F8" align="center">
<!--DWLayoutTable-->
<tr>
<td width="165" valign="top">用戶名:
<input name="username" type="text" class="input01" id="username" size="10">
<input name="comurl" type="hidden" id="comurl" value="<%=url%>"> <br> <br>
密 碼:
<input name="password" type="password" class="input01" id="password" size="10"></td>
</tr>
<tr>
<td valign="top"> <input name="Submit" type="submit" class="button1" value="提交">
<input name="Submit2" type="reset" class="button1" value="重寫">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -