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

📄 login.asp

📁 8款下载系统源代码 2003-3-11 21:37:45 433 949k · 都很常见: 猛虎山庄、燕衔泥(飞扬的软件第二版用的就是他
💻 ASP
字号:
<%
response.cookies("jy_down_admin")=""
if request("user")<>"" and request("pwd")<>"" then%>
<!--#include file="dbpath.asp"-->
<%
user=replace(request("user")," ","+++ close")
user=replace(user," ","")
set rs=server.createobject("adodb.recordset")
sql="select * from admin where user='"&user&"' and pwd='"&request("pwd")&"'"
rs.open sql,conn,1,1
if not rs.eof then
      response.cookies("jy_down_admin")=Server.MapPath(".")
      response.redirect "admlist.asp"
      response.end
end if
rs.close
set rs=nothing  
conn.close
set conn=nothing
end if%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css">
<title>管理登陆</title>
</head>

<body>
 <form method="post" action="login.asp" target="_top">

                  <div align="center">
                    <center>

                  <table border="0" bgcolor="#E9E9E9" cellspacing="1" cellpadding="0">
                    <tr>
                      <td width="100%">
                        <p align="center">用户登陆</td>
                    </tr>
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">

                  <table width="100%" border="0" cellspacing="1" cellpadding="0">
                    <tr> 
                      <td width="33%" align="right" nowrap> 
                          
                        <div align="center">用户名:</div>
                      </td>
                      <td width="67%" nowrap><input name="user" maxlength="20" size="20">
                      </td>
                    </tr>
                    <tr> 
                      <td width="33%" align="right" nowrap> 
                        <div align="center">密&nbsp;&nbsp;码:</div>
                      </td>
                      <td width="67%" nowrap>
                        <input type="password" name="pwd" maxlength="16" size="20">
                      </td>
                    </tr>
                    <tr>
                      <td width="100%" align="right" colspan="2" nowrap> 
                        <p align="center"><input type="submit" name="Submit" value="确定"> 
                      </td>
                    </tr>
                  </table>
                      
</td>
                    </tr>
                  </table>
                    </center>
                  </div>
    </form> 
 <p align="center"><a href="../">&lt;&lt;返回首页&gt;&gt;</a></p>
</body>

</html>

⌨️ 快捷键说明

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