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

📄 login.asp

📁 东营人家多用户留言本 2.2 版 留言本演示地址:http://www.860546.net/gbook/index.asp 留言本下载地址:http://www.860546.net/8
💻 ASP
字号:
<%session("user")=""
session("pwd")=""
if request("exit")="ok" then
response.redirect "index.asp?user="&request("user")&""
end if%>
<%
user=trim(request.form("user"))      
pwd=trim(request.form("pwd"))%>
<%if user<>"" and pwd<>"" then%>
<!--#include file="config.asp"-->
<%
set rsadm=server.createobject("adodb.recordset")
sqladm="select * from user where user='"&user&"'"
rsadm.open sqladm,conn,1,1
if not rsadm.eof then
if rsadm("pwd")="" then
   response.write("<script>alert('用户名不对!');history.go(-1)</script>")
end if
 if pwd=rsadm("pwd") then
   session("user")=rsadm("user")
   session("pwd")=rsadm("pwd")
   response.redirect "index.asp?user="&user&""
 else
   response.write("<script>alert('密码不对哦!');history.go(-1)</script>")
 end if
else
end if
  response.write("<script>alert('用户名不对!');history.go(-1)</script>")
rsadm.close
set rsadm=nothing  
conn.close
set conn=nothing
end if%>
<html>
<head>
<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>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="6" background="pic/a1bf.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
            <tr>
              <td width="100%">
        
          <div align="center">
            <center>
          <table width="300" border="0">
            <tr>
              <td height="62"><a href="index.asp?user=<%=request("user")%>">留言本</a> 
                <font face="Verdana">>></font> 登陆/管理</td>
            </tr>
          </table>
          <table class=table border="0" cellspacing="1" cellpadding="0" width="300">
            <tr> 
              <td width="50%" valign="top"> 
                <table border="0" width="100%" cellspacing="1" cellpadding="0" height="200">
                  <form method="POST" action="login.asp">
                    <tr> 
                      <td width="100%" nowrap> 
                        <p align="center">用户名: 
                          <input onmouseover="style.backgroundColor='#ffffff'"  onmouseout="style.backgroundColor='#ECECFF'" name="user" size="13" maxlength="20"  value="<%=request("user")%>">
                          <br>
                          <br>
                          密&nbsp;&nbsp;码: 
                          <input onmouseover="style.backgroundColor='#ffffff'"  onmouseout="style.backgroundColor='#ECECFF'" name="pwd" size="13" maxlength="20"  type="password">
                          <br>
                          <br>
                          <input onmouseover="style.backgroundColor='#ffffff'"  onmouseout="style.backgroundColor='#ECECFF'" type="submit" value=" 登 陆 " name="cmdOk" style="font-family: 宋体; font-size: 9pt;width:137;height:18" >
                        </p>
                      </td>
                    </tr>
                    <tr> 
                      <td width="100%"> 
                        <p align="center"> 
                      </td>
                    </tr>
                    <tr> 
                      <td width="100%"> 
                        <p align="center"><a href="mail.asp?user=<%=request("user")%>">忘了密码?</a></p>
                      </td>
                    </tr>
                  </form>
                </table>
          </table>           
                                             
            
          <br>
        </center>    
          </div>   
          <p align="center"><font size="2"><a href="index.asp?user=<%=request("user")%>">&lt;&lt;返回&gt;&gt;</a></font></p>  
              </td>
            </tr>
          </table>
</body> 

⌨️ 快捷键说明

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