?? checkuser.asp
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<style type="text/css">
<!--
body {
background-color: #FFFDEE;
background-image: url();
}
body,td,th {
font-size: 14px;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
-->
</style></head>
<body>
<p>
<%
dim id,pw
id=Request.Form("user")
pw=Request.Form("pw")
Session("id")=id
Session("Pw")=pw
session.Timeout=10
%>
<%If session("id")="" Then
Response.Redirect "index.asp"
end if
%>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="468" height="164" border="0" align="center">
<tr>
<td bgcolor="#FFFFCC"><div align="center">
<p>
<%
if Request.Form("user")="admin" and Request.form("pw")="admin" Then
Response.Redirect "main.htm"
elseif Request.Form("user")="user" and Request.form("pw")="user" Then
Response.Redirect "main.htm"
elseif Request.Form("user")="" or Request.form("pw")="" Then
Response.Write " 請輸入用戶名跟密碼"
else
Response.Write " 請輸入正確的用戶名跟密碼"
end if
%>
</p>
<p><a href="index.asp">點擊這里返回登陸頁面</a></p>
</div></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -