📄 getpassword.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<div align="center">
<!--#include file="config.asp"-->
<%
dim action
action=request("action")
if action="step2" then
dim username
username=checkstr(trim(request.form("username")))
if username="" then
call mb("请输入登陆帐号!","",0)
end if
set rs=server.createobject("adodb.recordset")
sql="select question from author where username='"&username&"'"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
call mb("对不起,找不到此登陆帐号!","",0)
else
%>
<TABLE width=760 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#ffffff>
<TBODY>
<TR>
<TD bgColor=#ffa200 class=bodyleft width=7><IMG height=1
src="img/blank.gif" width=7></TD>
<TD
width=743 valign="top"
style="BORDER-BOTTOM: #000000 1px solid; BORDER-TOP: #000000 1px solid"><table width="743" border="0" cellspacing="0" cellpadding="0" class="borders">
<tr>
<td width="180" bgcolor="#F7F7F7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22" align="center"> </td>
</tr>
<tr>
<td height="22" align="center"> √<font color="#000000"> 填写登陆帐号</font></td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">→<font color="#FF0000"> 填写密码答案</font></td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">获取您的密码</td>
</tr>
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
</tr>
</table></td>
<td width="570" valign="top"><table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" height="24" width="100%" class="borders">
<tr>
<td height="21" width="63%"> 当前位置:<a href="index.asp" ></a>
-> 获取登陆密码 -> 填写密码答案</td>
<td height="21" width="37%"><br> <br> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF" class="border">
<td valign="top"> <form action="?action=step3" method="post" name="getpassword" id="getpassword">
<table align="center" border="0" bordercolor="#000000" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td background="" width="18%"> </td>
<td background="" width="79%"> <font color="#993300">获
取 登 陆 密 码</font></td>
<td width="4%"> </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td width="23%" height="25" align="center">密码问题: </td>
<td width="77%" height="25"><b><%=rs(0)%></b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" align="center">密码答案: </td>
<td height="25"><input name="answer" type="text" class="input" id="answer2" size="25"></td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="30" colspan="2"><input name="username3" type="hidden" id="username3" value="<%=username%>">
<input name="Submit4" type="button"
class="button" value=" 上一步" onclick="javascript:history.go(-1);">
<input name="Submit3" type="submit" class="button" value=" 下一步 "></td>
</tr>
</table>
</form>
<p> </p></td>
</tr>
</table></td>
</tr>
</table></TD>
<TD bgColor=#ffa200 class=bodyright width=6><IMG height=1
src="img/blank.gif" width=6></TD></TR></TBODY></TABLE>
</div>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<div align="center">
<%
end if
rs.close
set rs=nothing
elseif action="step3" then
dim answer
username=checkstr(request.form("username"))
answer=checkstr(trim(request.form("answer")))
if username="" then
call mb("对不起,请指定要取回密码的登陆帐号!","getpassword.asp",1)
end if
if answer="" then
call mb("请输入密码答案!","",0)
end if
set rs=conn.execute("select answer,password from author where username='"&username&"'")
if rs.bof and rs.eof then
call mb("对不起,找不到此帐号信息!","getpassword.asp","")
elseif rs(0)<>answer then
call mb("对不起,密码答案不正确!","",0)
else
%>
<TABLE width=760 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#ffffff>
<TBODY>
<TR>
<TD bgColor=#ffa200 class=bodyleft width=7><IMG height=1
src="img/blank.gif" width=7></TD>
<TD
width=743 valign="top"
style="BORDER-BOTTOM: #000000 1px solid; BORDER-TOP: #000000 1px solid"><table width="743" border="0" cellspacing="0" cellpadding="0" class="borders">
<tr>
<td width="182" bgcolor="#F7F7F7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22" align="center"> </td>
</tr>
<tr>
<td height="22" align="center"> √ <font color="#000000">填写登陆帐号</font></td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">√ 填写密码答案</td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">→ <font color="#FF0000">获取您的密码</font></td>
</tr>
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
</tr>
</table></td>
<td width="568" valign="top"><table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" height="24" width="100%">
<tr>
<td height="21" width="63%"> 当前位置:<a href="index.asp" title="联盟首页"></a>
-> 获取登陆密码 -> 获取密码</td>
<td height="21" width="37%"><br> <br> </td>
</tr>
</table>
<table align="center" border="0" bordercolor="#000000" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td background="" width="18%"> </td>
<td background="" width="79%"> <font color="#993300">获 取 登
陆 密 码</font></td>
<td width="4%"> </td>
</tr>
</table>
<table width="62%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="200%" height="91" colspan="2" bgcolor="#FFFFFF"> 恭喜您,您的密码为:<font color="red"><b><%=rs(1)%></b></font> <a
href="login.asp" >点这里登陆</a></td>
</tr>
</table></td>
</tr>
</table></TD>
<TD bgColor=#ffa200 class=bodyright width=6><IMG height=1
src="img/blank.gif" width=6></TD></TR></TBODY></TABLE>
<%
end if
rs.close
set rs=nothing
else
%>
<TABLE width=760 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#ffffff>
<TBODY>
<TR>
<TD bgColor=#ffa200 class=bodyleft width=7><IMG height=1
src="img/blank.gif" width=7></TD>
<TD
width=743 valign="top"
style="BORDER-BOTTOM: #000000 1px solid; BORDER-TOP: #000000 1px solid"><table width="743" border="0" cellspacing="0" cellpadding="0" class="borders">
<tr>
<td width="183" bgcolor="#F7F7F7"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22" align="center"> </td>
</tr>
<tr>
<td height="22" align="center"> → <font color="#FF0000">填写登陆帐号</font></td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">填写密码答案</td>
</tr>
<tr>
<td height="22" align="center">↓</td>
</tr>
<tr>
<td height="22" align="center">获取您的密码</td>
</tr>
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
</tr>
</table></td>
<td width="567" valign="top"><table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" height="24" width="100%">
<tr>
<td height="21" width="63%"> 当前位置:<a href="index.asp" ></a>
-> 获取登陆密码 -> 填写帐号</td>
<td height="21" width="37%"><br> <br> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF" class="border">
<td valign="top"> <form action="?action=step2" method="post" name="getpassword" id="getpassword">
<table align="center" border="0" bordercolor="#000000" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td background="" width="18%"> </td>
<td background="" width="79%"> <font color="#993300">获
取 登 陆 密 码</font></td>
<td width="4%"> </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td width="34%" height="22" align="center">第一步:请输入您的帐号</td>
<td width="66%" height="22"><input name="username" type="text" class="input" id="username" size="25"></td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="30" colspan="2"><input name="Submit" type="submit" class="button" value=" 下一步 "></td>
</tr>
</table>
</form>
<p> </p></td>
</tr>
</table></td>
</tr>
</table></TD>
<TD bgColor=#ffa200 class=bodyright width=6><IMG height=1
src="img/blank.gif" width=6></TD></TR></TBODY></TABLE>
<%
end if
%>
<!--#include file="up.asp"-->
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -