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

📄 login.asp

📁 一心FLASH动画欣赏系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("a")<>"" then
response.redirect "index.asp"
end if
name=request.form("name")
pass=request.form("pass")
if name<>"" then
sql="select * from admin where 帐号='"&name&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,1
if not rs.eof then
	if pass=rs("密码") then
	session("a")=name
	response.redirect "index.asp"
	end if
end if
end if
%>
<html>

<head>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1; margin-bottom: 1 }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>管理员登录</title>
</head>

<body topmargin="0">


<div align="center">
  <center>
  <table border="0" width="725">
    <tr>
      <td width="100%" height="8"></td>
    </tr>
    <tr>
      <td width="100%">
        <div align="center">
          <center>
          <table border="0" width="300" cellspacing="0" cellpadding="0">
          <form action="" method="post">
            <tr>
              <td width="100%" height="23">
                 </td>
            </tr>
          </center>
  </center>
            <tr>
              <td width="100%" bgcolor="#FFFFFF">
                <table border="0" width="100%">
                  <tr>
                    <td width="38%">
                      <p align="right">帐号:</td>
          <td width="62%"><input type="text" name="name" size="20"></td>
  </tr>
                  <tr>
                    <td width="38%">
                      <p align="right">密码:</td>
          <td width="62%"><input type="password" name="pass" size="20"></td>
  </tr>
  <tr>
    <td width="100%" colspan="2">
      <p align="center"><input type="submit" value="进入" name="enter">&nbsp;&nbsp;             
      <input type="reset" value="取消" name="reset"></p>           
    </td>           
  </tr></form>           
                    </table>           
                  </td>           
            </tr>           
          </table>           
        </div>           
      </td>           
    </tr>           
  </table>           
</div>           

</body>          
          
</html>          

⌨️ 快捷键说明

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