📄 forget_password.asp
字号:
<!--#include file="../film_conn.asp"-->
<HTML><HEAD><TITLE><%=webname%> - 会员管理中心 - 忘记密码</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<script>
//*****************************************************
function valid_register(){
if( document.regist.userid.value.length<5 )
{window.alert("用户名位数太短!请至少输入5位字符。");
document.regist.userid.focus();
return false;
} ;
if( document.regist.userid.value.length>15 )
{window.alert("用户名位数太长!请最多输入15位字符。");
document.regist.userid.focus();
return false;
} ;
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
while (ii<document.regist.userid.value.length)
{
if (bString.indexOf(document.regist.userid.value.substring(ii,ii+1))==-1)
{
alert("对不起,用户名不能包含非法字符。只能由数字0-9、字母a-z以及符号 - _ 组成。")
document.regist.userid.focus()
return false;
}
ii=ii+1;
} ;
if (document.regist.a.value.length<2 || document.regist.a.value.length>12 )
{
alert("对不起,请填写提示问题答案,在2-12个字符之间!")
document.regist.a.focus()
return false;
};
}
</script>
</HEAD>
<BODY bgColor=#71757b leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0" botmargin="0">
<!--#include file="../top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center background=../images/bg-content.gif border=0 valign="top">
<TBODY>
<TR>
<TD width=778 height=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=1
cellSpacing=0 cellPadding=0 width=778 align=left border=0 valign="top">
<TBODY>
<TR>
<TD width=778 height=188>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=778 border=0>
<TBODY>
<TR>
<TD width=15 height=151> </TD>
<TD vAlign=top width=194 height=151><!--#include file="../left1.asp"--></TD>
<TD vAlign=top width=4></TD>
<TD vAlign=top width=550 height=151>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
cellSpacing=5 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="100%" height=386>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=246 cellSpacing=0 cellPadding=0 width="91%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="100%" height=39><!--#include file="../query.asp"--></TD></TR>
<TR>
<TD width="100%" height=5></TD></TR>
<TR>
<TD width="100%" height=8></TD></TR>
<TR>
<TD width="100%" height=5></TD></TR>
<TR>
<TD width="100%" height=3>
<IMG height=21
src="../images/b.gif" width=538 border=0></TD></TR>
<TR>
<TD width="100%" background=../images/b01.gif height=465 valign="top">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1">
<tr>
<td width="100%" style="font-size: 12px">
<div align="center" style="font-size: 12px">
<center>
<table border="1" cellpadding="3" cellspacing="1" style="border-collapse: collapse" width="100%" id="AutoNumber3" bgcolor="#F6F6F6">
<tr>
<td width="100%" style="font-size: 12px"><font size="2">如果您忘记了自己的密码,请在如下表单里输入您的密码提示信息!</font></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="100%" style="font-size: 12px">
<p align="center"></p>
<div align="center" style="font-size: 12px">
<center>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" width="70%" id="AutoNumber1">
<form method="POST" action="forget_password.asp?type=s" name="regist" onsubmit="return valid_register()">
<tr>
<td width="116" style="font-size: 12px"><font size="2">注册的用户名:</font></td>
<td width="196" style="font-size: 12px"><input type="text" name="userid" size="20"> </td>
</tr>
<tr>
<td width="116" style="font-size: 12px"><font size="2">密码提示问题:</font></td>
<td width="196" style="font-size: 12px">
<select size="1" name="q">
<option value="你最爱的人是谁">你最爱的人是谁</option>
<option value="你的父亲叫什么名字">你的父亲叫什么名字</option>
<option value="最好的朋友叫什么名字">最好的朋友叫什么名字</option>
<option value="你念中学时的校名">你念中学时的校名</option>
<option value="最心爱的宠物的名字">最心爱的宠物的名字</option>
<option value="最喜欢的一句名言">最喜欢的一句名言</option>
<option value="最讨厌的一件事">最讨厌的一件事</option>
<option value="最喜欢看的书名">最喜欢看的书名</option>
</select></td>
</tr>
<tr>
<td width="116" style="font-size: 12px"><font size="2">密码提示答案:</font></td>
<td width="196" style="font-size: 12px"><input type="text" name="a" size="20"></td>
</tr>
<tr>
<td width="292" colspan="2" style="font-size: 12px">
<p align="center"><input type="submit" value="提交" name="B1"> <input type="reset" value="重填" name="B2"></td>
</tr>
<%
if request("type")="s" then
set rs=server.createobject("adodb.recordset")
sql="select password from users where userid='"&request("userid")&"'and question='"&request("q")&"'and ask='"&request("a")&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then%>
<tr>
<td width="292" colspan="2" height="40" style="font-size: 12px"><font size="2">很抱歉,没有找到相应记录!</font></td>
</tr>
<%
else
%>
<tr>
<td width="292" colspan="2" height="40" style="font-size: 12px"><font size="2">您的密码是:<span style="background-color: #ffffff"><%=rs("password")%></span><br>
<br>
<font color="#FF0000">要保存好喔,下次不要弄丢了:)</font></font></td>
</tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if%>
</form>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="100%" style="font-size: 12px"></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</center>
</div>
</TD></TR>
<TR>
<TD width="100%" height=1>
<IMG height=5
src="../images/b02.gif" width=538
border=0></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE></TD>
<TD width=15 height=151> </TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</table>
<!--#include file="../bottom.asp"-->
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -