📄 getpass3.asp
字号:
<%
userid=trim(request.Form("userid"))
question=trim(request.Form("question"))
answer=trim(request.Form("answer"))
if userid="" or question="" or answer="" then
%>
<script language="JavaScript">
history.go(-1)
alert("用户帐号、密码提示问题和答案必须填写完整!")
</script>
<%response.End()
end if
if instr(userid,"'")>0 or instr(question,"'")>0 or instr(answer,"'")>0 then
%>
<script language="JavaScript">
history.go(-1)
alert("错误:你提交的数据中含有非法字符!")
</script>
<%response.End()
end if
%>
<!--#include file="head.asp"-->
<!--#include file="diao.asp"-->
<TABLE width=760 border=0 align=center cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF" class=bk>
<TBODY>
<TR>
<TD vAlign=top align=middle width=150
background=images/index_00.gif
height=500>
<!--#include file="left.asp"-->
</TD>
<TD vAlign=top align=middle height=300 rowSpan=12>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/sj_dhtp.jpg" >
<tr>
<td width="4%"><img src="images/sj_dh.jpg" width="29" height="28"></td>
<td width="71%"> </td>
<td width="25%"> </td>
</tr>
</table></TD>
</TR>
<TR>
<TD align=middle><br>
<br>
<div align="center">
<!-- #include file="lwconn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from user where userid='"&userid&"'"
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.Write("<div align=center><h3><font color=red>数据输入不正确,无法取回密码!</font></h3>")
response.Write("点击<a href='javascript:history.go(-1)'><font color='#0099FF'>此处返回</font></a>重新输入!</div>")
else
if rs("question")=question and rs("answer")=answer then
response.Write("<div align=center><b><font color=red>你的密码是:</font> "&rs("pass1")&"</b><br><br>")
response.Write("点击<a href='login.asp'><font color='#0099FF'>此处返回</font></a>登陆!</div>")
else
response.Write("<div align=center><h3><font color=red>数据输入不正确,无法取回密码!</font></h3>")
response.Write("<br>点击<a href='javascript:history.go(-1)'><font color='#0099FF'>此处返回</font></a>重新输入!</div>")
end if
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</div></TD></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle vAlign=top> <IMG
height=3
src="images/index_li2.gif"></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR></TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR>
</TR>
</TBODY>
</TABLE>
<!--#include file="footer.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -