?? getpwd3.asp
字號(hào):
<!--#include file=conn.asp --><!--#include file=md5.asp -->
<%
username=request("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [sh_user] where username='"&username&"'"
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("這個(gè)用戶還沒(méi)有注冊(cè)呢,請(qǐng)注冊(cè)!");window.close();
response.End
</script>
<%
End If
If rs("answer")<>md5(trim(request("answer"))) Then
Response.redirect"getpwderr.asp?content=答案"
End If
%>
<html>
<head>
<title>取回密碼</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="inc/css.css">
<script LANGUAGE="javascript">
<!--
function FrmAddLink_onsubmit() {
if (document.FrmAddLink.passwd.value=="")
{
alert("對(duì)不起,請(qǐng)您輸入密碼!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length < 4)
{
alert("為了安全,您的密碼應(yīng)該大于4個(gè)字符!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length > 10)
{
alert("您的密碼太長(zhǎng)了吧,要小于10個(gè)字符喲!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd2.value=="")
{
alert("對(duì)不起,請(qǐng)您輸入驗(yàn)證密碼!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
{
alert("對(duì)不起,您兩次輸入的密碼不一致!")
document.FrmAddLink.passwd2.focus()
return false
}
}
//-->
</script>
</head>
<body oncontextmenu="self.event.returnValue=false">
<form method="POST" name="FrmAddLink" language="javascript" onsubmit="return FrmAddLink_onsubmit()" action="getpwd4.asp?username=<%=username%>&depid=<%=depid%>">
<table border="0" cellpadding="0" width="320" cellspacing="0" height="49" align="center">
<tr>
<td width="100%" height="22" align="center">
<p><strong>重新設(shè)置密碼</strong></td>
</tr>
<tr>
<td width="100%" height="1" align="center"> 新 密 碼:
<input type="password" name="passwd" size="12" maxlenght=16>
<br><br>驗(yàn)證密碼:
<input type="password" name="passwd2" size="12" maxlenght=16>
<br><br>
<input type="submit" value=" 設(shè)置密碼 " name="submit" ></td>
</tr>
<tr>
<td align="center"><br>
<a href="javascript:window.close()" class="1">關(guān)閉窗口</a></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html><%
conn.close
set conn=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -