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

📄 admpost.asp

📁 这是一个压缩包
💻 ASP
字号:
<html>
<head>
<%
	username=request("username")															'接受管理员用户名
	password=request("password")															'接受管理员密码
	keys=request("keys")
	mm=0
%> 
<!--#include file="conn1.asp"-->
<%
	if username<>"" and password<>"" then
		set rs=newconn.execute("select * from ip_user where username='"& username & "'")				'判断是否存在该用户
			if not (rs.bof and rs.eof) then													'判断是否有该权限
				if rs("password")=password then
				   session("password")=rs("password")										'为真则将该用户的该权限放入SESSION中
				   Response.Redirect "index21.asp"											'跳转到管理员管理页面
				else
				   mm=1
				end if
			else
				mm=2
			end if
		elseif keys="submit" then
		mm=3
	end if
%>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>IP登记系统</title>
<link href="20041026_25175_stry_css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" bgcolor="#999999"><div align="center" class="unnamed3write">IP登记系统</div></td>
  </tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="300"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#97C4CA">
      <tr>
        <td valign='top'><div align=center>
            <form action="admpost.asp" method="post" name="form2" id="form2">
              <table width="300" border="0">
                <tr align="center"> </tr>
                <tr>
                  <td colspan="2">
                    <%
			if mm=1		then 
			   Response.Write "对不起,您输入的密码有误!"
			elseif mm=2 then
			   Response.Write "您没有登陆的权限!"
			elseif mm=3 then
			   Response.Write "请输入完整的用户名和密码!"
			end if
           %>
                  </td>
                </tr>
                <tr>
                  <td width="197" align="right">管理员帐号:</td>
                  <td width="205"><input name="keys" type="hidden" value="submit">
                      <input name="username" type="text" class="editbox1" id="username" size="20" maxlength="20"></td>
                </tr>
                <tr>
                  <td align="right">管理员密码:</td>
                  <td><input name="password" type="password" class="editbox1" size="20" maxlength="20"></td>
                </tr>
                <tr align="center">
                  <td colspan="2">
                    <input type="submit" name="Reg2" value="登录" class="bottom">
                    <input type="reset" name="Submit32" value="重填" class="bottom">
                  </td>
                </tr>
              </table>
            </form>
            <p>     
        </div></td>
      </tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" bgcolor="#999999"><div align="center" class="unnamed3write"><a href="http://www.25175.com" class="unnamed3write">powered by 25175.com</a> </div></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -