⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getpwdshjia3.asp

📁 商业网站开发有源代码可以运行
💻 ASP
字号:
<!--#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("这个用户还没有注册呢,请到首页注册吧!")
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("对不起,请您输入密码!")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd.value.length < 6)
	{
	  alert("为了安全,您的密码应该长一点!")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd.value.length > 16)
	{
	  alert("您的密码太长了吧!")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value=="")
	{
	  alert("对不起,请您输入验证密码!")
	  document.FrmAddLink.passwd2.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
	{
	  alert("对不起,您两次输入的密码不一致!")
	  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>第三步:重新设置密码。 
      </td>
</tr>
<tr> 
<td width="100%" height="1">
新&nbsp;密&nbsp;码:
          <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>验证密码:
          <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=" 设置密码 " 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">关闭窗口</a>
      </td>
</tr>
</table>
</form>
</body>

</html><%   
conn.close   
set conn=nothing   
 
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -