📄 login_admin.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%dim admin,pass
admin="firste"
pass="firste"
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("u"))
If MM_valUsername <> "" Then
If Trim(Request.Form("validatecode"))=Empty Or Trim(Session("cnbruce.com_ValidateCode"))<>Trim(Request.Form("validatecode")) Then
%><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>javascript:alert('验证码错误!');location.href='login_admin.asp';</script><%
response.end
End If
if Trim(Request.Form("u"))=admin and Trim(Request.Form("p")) = pass then
' username and password match - this is a valid user
Session("firste_user") = MM_valUsername
Response.Redirect("admin_index.asp")
else
Response.Write("")
%><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>javascript:alert('用户名或密码错误!');location.href='login_admin.asp';</script><%
response.end
end if
End If
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台管理登陆</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="t3">
<tr>
<td class="l"></td>
<td align="center" class="t">管理员登陆</td>
<td class="r"></td>
</tr>
</table>
<div class="b3">
<form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
<table width="600" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="293" align="right" valign="top">用户名:</td>
<td width="291"><input name="u" type="text" id="u" /></td>
</tr>
<tr>
<td align="right" valign="top">密码:</td>
<td><input name="p" type="password" id="p" /></td>
</tr>
<tr>
<td align="right" valign="top">验证码:</td>
<td><input name='validatecode' type='text' size='5' />
<img src='validatecode.asp' align='absmiddle' border='0' /></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="登陆" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table>
</form>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="t3b">
<tr>
<td class="l"> </td>
<td class="c"> </td>
<td class="r"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -