📄 admin_login.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="pageset.asp"-->
<!--#include file="lock.asp"-->
<!--#include file="css.asp"-->
<%
if request("Submit")<>"" then
textfield=request("textfield")
textfield2=request("textfield2")
if instr(textfield2,"'")<>0 or instr(textfield,"'")<>0 then call errmsg("密码中含有非法字符")
sql="select username,password from admin where username='"&textfield&"' and password='"&textfield2&"'"
rs.open sql,conn,1,3
if rs.eof and rs.bof then
call errmsg("用户名或密码不正确")
else
session("admin")=rs("username")
session("pwd")=rs("password")
response.redirect"default.asp"
end if
rs.close
call connclose
response.end
end if
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> <!--#include file="top.asp"--> </td>
</tr>
<tr>
<form name="form1" method="post" action="">
<td height="175">
<table width="32%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="26"><div align="center"><b>管理员登录</b></div></td>
</tr>
<tr>
<td height="22">username:
<input type="text" name="textfield"></td>
</tr>
<tr>
<td height="26">password:
<input type="password" name="textfield2"></td>
</tr>
<tr>
<td height="40"><div align="center">
<input type="submit" name="Submit" value="登录">
<input type="reset" name="Submit2" value="重置">
</div></td>
</tr>
</table>
</td>
</form>
</tr>
<tr>
<td>
<!--#include file="bottom.asp"-->
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -