📄 getpwd.asp
字号:
<!--#include file=conn.asp-->
<!--#include file="function.asp"-->
<!--#include file="config.asp"-->
<HTML>
<HEAD>
<TITLE>用户注册</TITLE>
<META http-equiv=content-type content="text/html; charset=GB2312">
<style type="text/css">
<!--
.zhtable {table-layout:fixed; word-wrap:break-word; width:100%; }
input{font-family:"arial"}
td {font-size: 9pt; line-height: 18px;font-family: "Arial";}
.p3 {font-size:13px; line-height: 24px;font-family: "Arial";}
.bnsrh {padding-top:2px;height:24px}
.bn100 {padding-top:2px;height:24px;width:100px}
.bnask {color:#000000;background-color:#FFD801;padding-top:2px;height:24px}
.bgbdy {background-color: #FFFFFF;margin:0px;}
.bglne {background-color: #DDF1D8; padding-right: 10px;}
.bgtle {border-top: #58CB64 1px solid; background-color: #DDF1D8; padding-left: 10px; padding-right: 10px; height:24px; font-weight:bold; font-size: 14px;}
.bgtleBl {border-top: #64B7D7 1px solid; background-color: #DEEEF4; padding-left: 10px; padding-right: 10px; height:24px; font-weight:bold; font-size: 14px;}
.bgtleYl {border-top: #F4BF20 1px solid; background-color: #FBF5C6; padding-left: 10px; padding-right: 10px; height:24px; font-weight:bold; font-size: 14px;}
.bgtleR {border-top: #58CB64 1px solid; background-color: #DDF1D8; padding-left: 10px; padding-right: 10px; height:24px;}
.bgtleL {border-top: #58CB64 1px solid; background-color: #DDF1D8; padding-left: 10px; padding-right: 10px; height:24px; font-size: 14px; font-weight:bold;}
.bgdsrh {background-color: #DDF1D8; padding-left: 10px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px;}
.bgdsrhLn {background-color: #58CB64;}
.bgcnt {background-color: #FFFFFF; padding-left: 10px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px;}
.bgcntBor3 {BORDER-left: #DDF1D8 2px solid; BORDER-right: #DDF1D8 2px solid; BORDER-bottom: #DDF1D8 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgcntBor3Bl {BORDER-left: #DEEEF4 2px solid; BORDER-right: #DEEEF4 2px solid; BORDER-bottom: #DEEEF4 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgcntBor3Yl {BORDER-left: #FBF5C6 2px solid; BORDER-right: #FBF5C6 2px solid; BORDER-bottom: #FBF5C6 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgcntBor4 {BORDER: #DDF1D8 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgcntBor4Bl {BORDER: #DEEEF4 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgcntBor4YL {BORDER: #FBF5C6 2px solid; background-color: #FFFFFF; padding-left: 8px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px;}
.bgpagLn {BORDER: #B4DAF8 1px solid; background-color: #F9FDFF; font-size: 14px;}
.bgtab {BORDER-TOP: #D6D6EB 1px solid; BORDER-left: #D6D6EB 1px solid; BORDER-right: #D6D6EB 1px solid; BORDER-bottom: #FFFFFF 1px solid;}
.bgtabCr {BORDER-top: #58CB64 1px solid; BORDER-left: #58CB64 1px solid; BORDER-right: #58CB64 1px solid; BORDER-bottom: #DDF1D8 1px solid; background-color: #DDF1D8; font-weight:bold; font-size: 14px; color:#000000;}
.bgusr {background-color: #E6F9EC;}
.lngn {border-bottom:1px solid #6fa02b; }
.ln23 {height:23px; border-bottom:1px solid #E1E1E1;}
.ln28 {padding:3px; border-top:1px solid #E1E1E1; padding-left:6px;}
.ln20 {border-top:1px solid #E1E1E1;}
.ln28pl4 {padding:3px; border-top:1px solid #E1E1E1; padding-left:4px;}
.padL4 {padding-left:4px}
.padL6 {padding-left:6px}
.pad10L {padding-left:10px}
.f14 {font-size: 14px;line-height: 22px;}
.f14B {font-size: 14px; font-weight:bold;}
.f14weB { font-size: 14px; font-weight:bold;}
.f14ln20 {font-size: 14px; line-height: 20px;}
.lh22 {line-height: 22px;}
.f12gy {color:#666666;}
.f12we {color:;}
.f12og {color:#FF6600;}
.f12gn {color:#008800;}
.f12rd {color:#FF3300;}
.f12b {font-weight:bold;}
a:link {text-decoration: underline;Color:#0000cc;}
a:visited {text-decoration: underline;Color:;}
a.lbk:link {color:#000000; text-decoration: underline}
a.lbk:visited {color: #000000; text-decoration: underline}
a.lwe:link {color:#FFFFFF; text-decoration: underline}
a.lwe:visited {color: #FFFFFF; text-decoration: underline}
a.lmore:link {font-weight:bold; text-decoration: underline}
a.lmore:visited {font-weight:bold; text-decoration: underline}
a.lklbe:link {color: #7777cc; text-decoration: underline}
a.lklbe:visited {color: #7777cc; text-decoration: underline}
a.lkgn:link {color: #008800; text-decoration: underline;}
a.lkgn:visited {color: #008800; text-decoration: underline;}
a.cy:link {color: #7777cc; text-decoration: underline}
a.cy:visited {color: #7777cc; text-decoration: underline}
a.headTit:link{color:#0000cc;font-size:13px; line-height: 24px;}
a.headTit:visited{color:#0000cc;font-size:13px; line-height: 24px;}
.headTitB{font-weight:bold;font-size:13px; line-height: 24px;font-family: "Arial";}
.TopMgn6{margin-top:6px}
.cBaidu{color:#777777}
.padRig12{padding-right:12px;}
.fB{Font-weight:bold}
.pad3{padding:3px;}
.magBtm12{margin-bottom:12px;}
.padL12{padding-left:12px;}
.divC{width:770px;text-align:left;}
.pC{width:65%; font-size:80%;line-height:18px;}
.ResultTit{font-size : 125%; line-height:120%;margin-bottom:2px;}
.kwC{color:#FF3300;}
.fs{font-size:95%;color: #008800;}
-->
</style>
</HEAD>
<BODY text=#000000 vLink=#0033cc aLink=#800080 link=#0033cc bgColor=#ffffff topMargin=0>
<%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 width="650" align=center border=0 cellspacing="0" cellpadding="0">
<TBODY>
<TR >
<TD vAlign=top width=150 height=66><a href="<%=weburl%>"><IMG src="img/logo-zhidao1.gif" width="137" height="46" border=0></a></TD>
<TD vAlign=bottom><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class="bgtleL">密码找回</TD>
</TR>
<TR>
<TD height=20 class=f12gy></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<table width="650" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2" height="50" class="f14" > <img src="img/tips.gif" width="16" height="16"></td>
</tr>
</table>
<table width="650" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2" class="bgtle" height="24">密码找回</td>
</tr>
</table>
<table width="650" border="0" align="center" cellpadding="6" cellspacing="0">
<tr>
<td colspan="2" height="40" >填写您的用户名、密码提示问题及答案。</td>
</tr>
</table>
<table width="334" border="0" align="center" cellpadding="0" cellspacing="6" bgcolor="#FFFFFF" height="1"><form method=post action=getpwd.asp>
<tr>
<td class="pad10L" 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">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td class="pad10L" 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">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td class="pad10L" valign="top" nowrap height="14">
<p align="right"> 密码提示问题答案:</p>
</td>
<td valign="top" height="14" width="249"> <input name="answer" type="text" id="answer" size="20">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td class="pad10L" valign="top" nowrap height="6">
<p align="right">验证码:</p>
</td>
<td valign="top" height="6" width="249"><input type="text" size=3 maxlength=4 name=verifycode> <%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="bnsrh">
<input name="reset" type="reset" id="reset" value="重新填写" class="bnsrh"></p>
</td>
</tr>
</table>
</form>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" style="clear:both;"> <tr> <td height="30" align=center><!--#include file=end.asp--></td>
</tr>
</table>
</body></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -