<!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"> </td>
</tr>
<tr>
<td width="186" align="center" valign="bottom"> </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> | <a href="reg.asp"><span class="doman">註冊</span></a> | <a href="findpwd.asp" target="_blank" class="style7">找回密碼</a> | <a href="help.html" target="_blank" class="doman">使用協助</a> | <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"> </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"> </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"> </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">
<input name="name" type="text" class="button3" id="name" />
<span class="bt2">*</span> 輸入要找回密碼的使用者名稱</td>
</tr>
<tr>
<td height="27" align="center">選擇問題:</td>
<td height="27" colspan="2">
<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>
<span class="bt2">*</span> 選擇你註冊時的提問</td>
</tr>
<tr>
<td height="27" align="center">填寫答案:</td>
<td height="27" colspan="2">
<input name="name2" type="text" class="button3" id="name2" />
<span class="bt2">* 你註冊是填寫的答案</span></td>
</tr>
<tr>
<td height="27" align="center">驗證碼:</td>
<td height="27" colspan="2">
<input name="name3" type="text" class="button3" id="name3" size="10" />
<span class="style7">照此輸入驗證碼</span>:<img src="inc/imgget.asp" border="0" onClick="this.src='inc/imgget.asp';"> <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=" 確 認 " />
</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>