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

📄 login.asp

📁 一个用jsp 编写的个人主页网站哦。希望对大家有所帮助啊
💻 ASP
字号:
<!--#include file="conn.asp" -->
<%
username=Trim(Request.Form("username"))
password=Trim(Request.Form("password"))
if username<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select psw from admin where admin='"&username&"'"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
Response.Write("<script language='JavaScript'>alert('用户名错误!请重新登陆!')</script>")
else
if password<>rs("psw") then
Response.Write("<script language='JavaScript'>alert('密码错误!请重新登陆!')</script>")
else
session("admin")="liyu"
response.Redirect("index.asp")
end if
end if
end if
set rs=nothing
set conn=nothing
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=liyutitle%></title>
<style type="text/css">
body {
	border: thin none;
	background-attachment: fixed
}
td {
	font-size: 9pt;
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #999900;
}
a:visited {
	color: #999900;
}
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="930" height="436" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right" valign="top" background="images/flagBg0.jpg"> <br><br><br><br><br><br>
      <table height="158" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="291" background="images/flagBg.gif">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <form name="form1" method="post" action="login.asp">
                <tr> 
                  <td height="20"> <div align="center">代 号: 
                      <input name="username" type="text" size="10" maxlength="20" style="border:0;border-bottom:1 solid black;background:;width=100px;">
                    </div></td>
                </tr>
                <tr> 
                  <td height="20"> <div align="center">密 码: 
                      <input name="password" type="password" size="10" maxlength="20" style="border:0;border-bottom:1 solid black;background:;width=100px;">
                    </div></td>
                </tr>
                <tr> 
                  <td height="33" align="center"><div align="right"><br>
                      <input type="submit" name="Submit" value="提交">
                    </div></td>
                </tr>
              </form>
            </table>
          </td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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