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

📄 login.asp

📁 ASP的网上商城在线支付系统
💻 ASP
字号:
<% 
 dbname="dsn=admin;uid=;pwd=;"
  set conn=Server.CreateObject("ADODB.Connection")
  conn.open dbname

 dim names,pass
 session("log")=False
 session.timeout=60
 if request.form("send")<>empty then
  names=trim(request.form("name"))
  pass=trim(request.form("pass"))
set rs=SERVER.CREATEOBJECT("ADODB.RECORDSET")
  sql="select * from user where username='"&names&"' and password='"&pass&"'"
RS.OPEN SQL,CONN,3,2
if not(rs.eof) then
passs=rs("password")
response.write passs
session("uid")=rs("ucode")
end if
if (not(rs.eof) AND PASS=PASSS) then session("log")=True
 response.cookies("adminok")=true

RESPONSE.WRITE PASSS
end if

SET RS=NOTHING

if session("log") then response.redirect "agentlist.asp"
%>
<html>
<head>
<title>登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
input {  font-size: 9pt}
td {  font-size: 9pt}
.button {  color: #FFFFFF; background-color: #000000}
-->
</style>
</head>

<body bgcolor="#FFFFFF">
<p>&nbsp;</p>
<p>&nbsp;</p>
<div align="center"> 
  <form method="post" action="login.asp">
    <table width="317" border="1" bordercolor="#000000">
      <tr align="center" bgcolor="#000000"> 
        <td colspan="2" height="21"><font color="#FFFFFF"> 管 理</font></td>
      </tr>
      <tr align="center"> 
        <td colspan="2"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="4">
            <tr bgcolor="#EAEAEA"> 
              <td width="95" align="right" height="40">用户名:</td>
              <td width="202" height="40"> 
                <input type="text" name="name" size="20" maxlength="20">
              </td>
            </tr>
            <tr bgcolor="#EAEAEA"> 
              <td width="95" align="right">密码:</td>
              <td width="202"> 
                <input type="password" name="pass" size="20" maxlength="20">
              </td>
            </tr>
            <tr bgcolor="#EAEAEA" align="center"> 
              <td colspan="2"> 
                <input type="submit" name="send" value="确定" class="button">
                <input type="reset" name="Submit2" value="清除" class="button">
                <br>
                <br>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </form>

<p>本后台系统不代表中网科技实际系统,如有雷同,纯属巧合!如果您认为系统超级烂,请到
<a href="http://www.nicchina.com" target="_blank">www.nicchina.com</a>注册用户使用本司强大后台系统!</p>
</div>
</body>
</html>

⌨️ 快捷键说明

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