📄 login.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="doc/config.asp"-->
<%
if request("LoginSubmit")<>"" then
name=request.Form("name")
password=request.Form("password")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from user where name='"&name&"' and password='"&password&"'",conn,1,1
if rs.eof and rs.bof then
call msgbox("您输入的用户名或密码不正确,请重新输入!","back","none")
else
session("name")=trim(rs("name"))
session.timeout=120
response.Redirect "add.asp"
end if
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>登陆</title>
</head>
<body background="images/bottom-z.gif">
<form name="form1" method="post" action="login.asp">
<table width="629" height="415" border="0" cellpadding="3" cellspacing="5" background="images/login211.gif" align="center">
<tr>
<td width="613" align="right" valign="bottom" background="images/1222.jpg">
<table width="190" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="64" bgcolor="#ffffff" align="right">用户名:</td>
<td width="153" bgcolor="#ffffff"><input name="name" type="text" id="admin2" size="15"></td>
</tr>
<tr>
<td height="31" align="right" bgcolor="#ffffff">密 码:</td>
<td bgcolor="#ffffff"><input name="password" type="password" id="password" size="15"></td>
</tr>
<tr>
<td height="40" colspan="2" align="center" bgcolor="#ffffff"><input name="LoginSubmit" type="submit" id="LoginSubmit" value="登录">
<input type="reset" name="Submit2" value="重置" ></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -