asp 使用者密碼找回

來源:互聯網
上載者:User

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>asp 使用者密碼找回</title>
<link href="inc/css教程.css" rel="stylesheet" type="text/css" />
</head>

 

<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="190" rowspan="2" align="center"><img src="images/logo.jpg" width="145" height="58" /></td>
    <td height="30" colspan="2" align="center" valign="bottom">&nbsp;</td>
  </tr>
  <tr>
    <td width="186" align="center" valign="bottom">&nbsp;</td>
    <td width="424" align="center" valign="bottom"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="2%" background="bgpic/4.gif"><img src="bgpic/1.gif" width="8" height="28" /></td>
        <td width="95%" align="center" valign="middle" background="bgpic/4.gif" class="doman"><a href="user.asp" class="doman">登入</a>&nbsp; | &nbsp;<a href="reg.asp"><span class="doman">註冊</span></a>&nbsp; | &nbsp;<a href="findpwd.asp" target="_blank" class="style7">找回密碼</a>&nbsp; |&nbsp; <a href="help.html" target="_blank" class="doman">使用協助</a>&nbsp; |&nbsp; <a href="http://www.gero.cn" target="_blank" class="doman">勁老首頁</a></td>
        <td width="3%"><img src="bgpic/2.gif" width="13" height="28" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#0099ff">
  <tr>

5
 
    <td height="246" align="center" bgcolor="#ECF3F9"><table width="780" height="173" border="0" cellpadding="0">
      <tr>
        <td height="169" align="center" valign="middle" bgcolor="#FFFFFF"><table width="600" height="10" border="0" cellpadding="0">
          <tr>
            <td height="25"></td>
          </tr>
        </table>
          <table width="574" border="0" cellpadding="0">
            <tr>
              <td width="570" align="center" bgcolor="#E9F0F8" class="style17"><table width="570" border="0" cellpadding="0" cellspacing="0" bgcolor="#E9F0F8">
               <form name="form1" id="form1" method="post" action=""> <tr valign="top" bgcolor="#FFFFFF">
                  <td height="40" colspan="3" align="center" class="caption_dark"><table width="522" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="10"><img src="bgpic/getpass.gif" width="10" height="32" /></td>
                      <td width="86" background="bgpic/getpass2.gif"><font color="#fe8301">1、輸入使用者名稱</font></td>
                      <td width="11"><img src="bgpic/getpass1.gif" width="11" height="32" /></td>
                      <td width="8">&nbsp;</td>
                      <td width="10"><img src="bgpic/getpass.gif" width="10" height="32" /></td>
                      <td width="161" background="bgpic/getpass2.gif">2、選擇密碼提問、填寫答案</td>
                      <td width="11"><img src="bgpic/getpass1.gif" width="11" height="32" /></td>
                      <td width="11">&nbsp;</td>
                      <td width="10"><img src="bgpic/getpass.gif" width="10" height="32" /></td>
                      <td width="83" align="center" background="bgpic/getpass2.gif">3、確認資訊</td>
                      <td width="11"><img src="bgpic/getpass1.gif" width="11" height="32" /></td>
                      <td width="16">&nbsp;</td>
                      <td width="10"><img src="bgpic/getpass.gif" width="10" height="32" /></td>
                      <td width="73" align="center" background="bgpic/getpass2.gif">4、成功</td>
                      <td width="11"><img src="bgpic/getpass1.gif" width="11" height="32" /></td>
                      </tr>
                  </table></td>
               </tr>
                <tr>
                  <td width="194" height="27" align="center">使用者名稱:</td>
                  <td width="374" colspan="2">&nbsp;&nbsp;
                    <input name="name" type="text" class="button3" id="name" />
                    &nbsp;&nbsp;<span class="bt2">*</span>&nbsp;輸入要找回密碼的使用者名稱</td>
                  </tr>
                <tr>
                  <td height="27" align="center">選擇問題:</td>
                  <td height="27" colspan="2">&nbsp;&nbsp;
                    <select name="name1" id="name1">
     <option value="我有名字叫什嗎?">我有名字叫什嗎?</option>
                    <option value="My Phone號是多少?">My Phone號是多少?</option>
                    <option value="我最喜歡的是什嗎?">我最喜歡的是什麼東西?</option>
                    <option value="我老婆叫什麼名字?">我老婆叫什麼名字?</option>
                    <option value="我家的地址在哪裡?">我家的地址在哪裡?</option>
                    <option value="我的生日?">我的生日?</option>
                    </select>
                    &nbsp;&nbsp;<span class="bt2">*</span>&nbsp; 選擇你註冊時的提問</td>
                  </tr>
                <tr>
                  <td height="27" align="center">填寫答案:</td>
                  <td height="27" colspan="2">&nbsp;&nbsp;
                    <input name="name2" type="text" class="button3" id="name2" />
                    &nbsp;&nbsp;<span class="bt2">*&nbsp;你註冊是填寫的答案</span></td>
                </tr>
                <tr>
                  <td height="27" align="center">驗證碼:</td>
                  <td height="27" colspan="2">&nbsp;&nbsp;
                    <input name="name3" type="text" class="button3" id="name3" size="10" />
                    &nbsp;<span class="style7">照此輸入驗證碼</span>:<img src="inc/imgget.asp" border="0" onClick="this.src='inc/imgget.asp';">&nbsp;&nbsp;<span class="bt2">*</span><span class="style7">防止惡意程式攻擊</span></td>
                  </tr>
                <tr align="center">
                  <td height="35" colspan="3"><input name="Submit" type="submit" class="tomg" value=" 確 認  " />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                  </tr>
                </form>
              </table></td>
            </tr>
          </table>
          <table width="600" height="10" border="0" cellpadding="0">
            <tr>
              <td><% dim sql,user,an,qn,ver
 user=html_encode(request.Form("name"))
 an=html_encode(request.Form("name1"))
 qn=html_encode(request.Form("name2"))
 ver=html_encode(request.Form("name3"))
 'response.write(ver)
 'response.end
 
 
 if len(user)>4 and len(an)>4 and len(qn)>2 and len(ver)=4 then
  if not isnumeric(ver) then
   response.Write("<b><font=red>驗證碼錯誤!</b></font>")
   response.end
  end if
   sql="select * from reg where username='"&user&"' and pwd_q='"&an&"' and pwd_an='"&qn&"'"
   call opensql()
   set sqlrs=sqlcn.execute(sql)
    if sqlrs.eof then
     response.write"<div align=center><b><font color=red>輸入的資訊不正確!</b></font></div>"
    else
     response.write("<div align=center>你的密碼是:<b><font color=red>"&sqlrs("password")&"</b></font>請記住你的密碼!</div>")
    end if
  end if

 

%></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>
</html>

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.