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

📄 login.asp

📁 一个简单的ASP做的定单提交程序,有后台管理,可在后台查看相观提交信息
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%response.buffer=true%>
<!-- #include file=include/setup.inc -->
<!--

-->
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="html/guest.css">
<title><%=guestTitle%></title></head>
<body text=ffffff bgcolor=#FFFFF0 leftmargin="20" style="background-color: #FFFFFF" background="bg4.gif">
<%
pass=request("pass")
if pass="" then
%>
<form method="POST" action="login.asp"><center>管理员登陆
      <table align="center">
        <tr> 
          <td><span class="p9">密码</span></td>
          <td align="center"> 
            <input name="pass" maxlength="200" class=smallinput>
          </td>
        </tr>
        <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="Goods.asp">返回订货单</a>】
            【<a href=<%=returnUrl%>>返回主页</a>】</span> </td>
        </tr>
      </table>
</div>
</form>
<%else%>
   <!-- #include file=database.asp -->
   <%set Rs=server.CreateObject("ADODB.Recordset")
   Rs.open "select top 1 * from manage",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("pass")<>pass then
      response.write "密码错误!"
      Rs.close
      set Rs=nothing
      con.close
      set con=nothing
      response.end
   end if
   
   session("pass")=pass
   response.clear
   Rs.close
   set Rs=nothing
   con.close
   set con=nothing
   response.redirect "manage.asp"
end if
%>
   
   
   


⌨️ 快捷键说明

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