?? getpwdshjia3.asp
字號(hào):
<!--#include file=conn.asp -->
<!--#include file=../md5.asp -->
<%
username=request("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [shjia] where username='"&username&"'"
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("這個(gè)用戶還沒(méi)有注冊(cè)呢,請(qǐng)到首頁(yè)注冊(cè)吧!")
location.href="../index.asp"
</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="style.css">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
<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 < 6)
{
alert("為了安全,您的密碼應(yīng)該長(zhǎng)一點(diǎn)!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length > 16)
{
alert("您的密碼太長(zhǎng)了吧!")
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 bgcolor="#FFFFFF" topmargin="11" leftmargin="0" oncontextmenu="self.event.returnValue=false">
<form method="POST" name="FrmAddLink" language="javascript" onsubmit="return FrmAddLink_onsubmit()" action="getpwdshjia4.asp?username=<%=username%>&depid=<%=depid%>">
<table border="0" cellpadding="0" width="320" cellspacing="0" height="49" align="center">
<tr>
<td width="100%" height="22">
<p>第三步:重新設(shè)置密碼。
</td>
</tr>
<tr>
<td width="100%" height="1">
新 密 碼:
<input type="password" name="passwd" size="12" maxlenght=16 style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff"; >
<br>驗(yàn)證密碼:
<input type="password" name="passwd2" size="12" maxlenght=16 style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff"; >
<br><input type="submit" value=" 設(shè)置密碼 " name="submit" style="font-family: 宋體; font-size: 9pt;></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td height="14" width="324">
<p><a href="javascript:window.close()" class="1">關(guān)閉窗口</a>
</td>
</tr>
</table>
</form>
</body>
</html><%
conn.close
set conn=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -