📄 get_password.asp
字号:
<!--#include file=conn.asp-->
<!--#include file="Function_QT.asp"-->
<!--#include file="Config.asp"-->
<TITLE>用户注册——密码找回</TITLE>
<META http-equiv=content-type content="text/html; charset=GB2312">
<!--#include file=top.asp-->
<%if request("getpwd")="取回密码" then
jiance=request("name")
if InStr(jiance,"or")<>0 or InStr(jiance,"'")<>0 or InStr(jiance,"`")<>0 or InStr(jiance,"=")<>0 or InStr(jiance,"-")<>0 or InStr(jiance,",")<>0 or InStr(jiance,"and")<>0 then
Response.Write "<script language=JavaScript>{alert('用户名含有非法字符!');history.back();}</script>"
Response.End
end if
if InStr(request("question"),"or")<>0 or InStr(request("question"),"'")<>0 or InStr(request("question"),"`")<>0 or InStr(request("question"),"=")<>0 or InStr(request("question"),"-")<>0 or InStr(request("question"),",")<>0 or InStr(request("question"),"and")<>0 then
Response.Write "<script language=JavaScript>{alert('用户名含有非法字符!');history.back();}</script>"
Response.End
end if
if InStr(request("answer"),"or")<>0 or InStr(request("answer"),"'")<>0 or InStr(request("answer"),"`")<>0 or InStr(request("answer"),"=")<>0 or InStr(request("answer"),"-")<>0 or InStr(request("answer"),",")<>0 or InStr(request("answer"),"and")<>0 then
Response.Write "<script language=JavaScript>{alert('用户名含有非法字符!');history.back();}</script>"
Response.End
end if
if not IsNumeric(request("verifycode")) then
Response.Write ("<script>alert('友情提示!\n\n验证编码必须是数字!');history.back();</script>")
Response.end
end if
if (int(session("SafeCode"))<>int(request("verifycode"))) then
Response.Write ("<script>alert('友情提示!\n\n验证编码输入错误!');history.back();</script>")
Response.end
end if
if request("name")="" then
response.write"<script>alert('用户名不能为空!');history.back();</script>"
elseif request("question")="" then
response.write"<script>alert('密码问题不能为空!');history.back();</script>"
elseif request("answer")="" then
response.write"<script>alert('密码答案不能为空!');history.back();</script>"
else
name=request("name")
question=request("question")
answer=request("answer")
rs.open"select * from person where name='"&name&"' and question='"&question&"' and answer='"&answer&"'",conn,1,1
if rs.eof then
response.write"<script>alert('密码保护信息错误!');history.back();</script>"
else
rs.close
rs.open"select * from person where name='"&name&"'",conn,1,3
pwd=rs("pwd")
rs.close
response.write"<script>alert('你的密码是"&pwd&",请牢记密码或修改密码!');window.navigate('Index.asp');</script>"
end if
end if
end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="t1">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="36" align="center" onmouseover="this.className='tbb'" onmouseout="this.className='taa'" class="taa"><strong>
密码找回</strong></td>
</tr>
<tr>
<td align=center><br>
<table border="0" width="98%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="6" height="1">
<form method=post action=Get_PassWord.asp>
<tr>
<td valign="top" height="1">
<p align="right"> 用户名:</p>
</td>
<td width="249" valign="top" height="1"> <input name="name" type="text" id="name" size="20" class="ip22">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td valign="top" height="1">
<p align="right"> 密码提示问题:</p>
</td>
<td valign="top" height="1" width="249"> <input name="question" type="text" id="question" size="20" class="ip22">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td valign="top" height="14">
<p align="right"> 密码提示问题答案:</p>
</td>
<td valign="top" height="14" width="249"> <input name="answer" type="text" id="answer" size="20" class="ip22">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td valign="top" height="6">
<p align="right">验证码:</p>
</td>
<td valign="top" height="6" width="249"><input type="text" size=3 maxlength=4 name=verifycode class="ip22"> <%Call GetSafeCode%><br><FONT color=#666666>(请输入图中数字)</FONT></td>
</tr>
</table>
<table width="650" border="0" cellspacing="6" cellpadding="0" align="center">
<tr>
<td valign="top" width="241" > </td>
<td valign="top" align=center width="387">
<p align="left"><input name="getpwd" type="submit" value="取回密码" class="ip2">
<input name="reset" type="reset" id="reset" value="重新填写" class="ip2"></p>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!--#include file=end.asp-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -