⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkuser.asp

📁 一个用ASP写的小型管理程序
💻 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>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</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 + -