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

📄 getpwd2.asp

📁 商业网站开发有源代码可以运行
💻 ASP
字号:
<!--#include file=conn.asp -->
<!--#include file=webconfig.asp -->
<%
username=request.form("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [user] where username='"&username&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢,请到首页注册吧!")
location.href="index.asp"
</script>
<%
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 form1_onsubmit() {
if (document.form1.answer.value=="")
	{
	  alert("请输入您的问题答案。")
	  document.form1.answer.focus()
	  return false
	 }
}
// --></script>
</head>

<body bgcolor="#FFFFFF" topmargin="11" leftmargin="0" oncontextmenu="self.event.returnValue=false">

<div align="center"><br><br>
  <form method="POST" name="form1" language="javascript" onsubmit="return form1_onsubmit()" action="getpwd3.asp?username=<%=username%>">
    <table cellpadding="0" cellspacing="0" width="320" style="border-collapse: collapse" border="0">
      <tr> 
        <td height="169"> 
          <div align="center"> 
            <center>
              <table border="0" cellpadding="0" width="99%" cellspacing="0" height="1" style="border-collapse: collapse" bordercolor="#111111">
                <%if rs("quesion")<>"" then%>
                <tr> 
                  <td width="100%" height="22"> 
                    <p>第二步:请回答下列问题。 
                  </td>
                </tr>
                <tr> 
                  <td width="100%" height="22"> 
                    <p>问题:<font color="red"><%=rs("quesion")%></font> 
                      <%     
conn.close     
set conn=nothing     
%>
                  </td>
                </tr>
                <tr> 
                  <td width="100%" height="1"> 
                    <p>答案: 
                      <input type="text" name="answer" size="12" class="form" 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 name="imageField" type="image" src="images/xyb.gif" width="54" height="18" border="0" onFocus="this.blur()">
                    <p> 您在个人资料中设置的提示问题为空,所以不能找回密码!如果您真的忘记了密码,请与<a href="mailto:<%=webemail%>">管理员</a>联系! 
                  </td>
                </tr>
                <%end if%>
              </table>
              <a href="javascript:window.close()" class="1">关闭窗口</a> 
            </center>
          </div>
          </td>
      </tr>
    </table>
</form>
</div>
</body>
</html>

⌨️ 快捷键说明

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