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

📄 login.asp

📁 报名系统。带源代码的asp 可以自动在实现网上报名]
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%response.buffer=true%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<title>蓝雨在线报名系统后台管理</title>
<STYLE type=text/css>
.inputs{border-left:0px;border-right:0px;border-top:0px;border-bottom:1px groove #aa9977;width:150px;font-size:9pt;BACKGROUND-COLOR: #000000;}
</STYLE>
</head>
<body text=ffffff bgcolor=000000 leftmargin="20" style="background-color: #FFFFFF">
<%
guanli=request("guanli")
mima=request("mima")
if mima="" or guanli="" then
%>
  <form method="POST" action="login.asp"><center><font color="#000000">管理员登陆</font>
      <table align="center">
        <tr> 
          <td><font color="#000000"><span class="p9">用户名</span></font></td>
          <td align="center"> 
            <input name="guanli" class="inputs" maxlength="100" style="color: #000000; border: 1px dotted #C0C0C0; background-color: #FFFFFF">
          </td>
        </tr>
        <tr> 
          <td><font color="#000000"><span class="p9">密码</span></font></td>
          <td align="center"> 
            <input type=password name="mima"  class="inputs" maxlength="100" style="color: #000000; border: 1px dotted #C0C0C0; background-color: #FFFFFF">
          </td>
        </tr>
        <tr> 
          <td align="right"></td>
          <td colspan="2" align="center">
              <input type="submit" value="  提 交  " class="buttonface">
          </td>
        </tr>
        <tr> 
          <td align="right"></td>
          <td  colspan="2" align="center"> <span class="p9">
            【<a href="../index.asp">返回</a>】 
            【<a href="http://www.yuxisan.com">返回主页</a>】</span> </td>
        </tr>
      </table>
</form>
<%else%>
   <!-- #include file=conn.asp -->
   <%set Rs=server.CreateObject("ADODB.Recordset")
   Rs.open "select top 1 * from guanli",con,1,1
   if Rs.eof or Rs.bof then
      response.write "数据库错误,数据库中注管理员已经不存在,请添加记录后再操作!"
      Rs.close
      set Rs=nothing
      con.close
      set con=nothing
      response.end
   end if
   
   if rs("mima")<>mima then
      response.write "密码错误!"
      Rs.close
      set Rs=nothing
      con.close
      set con=nothing
      response.end
   end if
   
   session("mima")=mima
   session("guanli")=guanli
   response.clear
   Rs.close
   set Rs=nothing
   con.close
   set con=nothing
   response.redirect "guanli.asp"
end if
%>
   
   
   

⌨️ 快捷键说明

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