📄 getpassword备份.asp
字号:
<!-- #include file="conn.asp" -->
<!-- #include file="ini.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=allsms%></title>
<link href="css.css" type=text/css rel=stylesheet></head>
<div id=d1><img src="logo.gif"></div>
<div id=d2 style="text-align:left;">您现在的位置»<A HREF="index.asp">首页</A>»<A HREF="getpassword.asp?getp=n0">取回密码</A>»</div>
<body>
<% if strcomp(request.QueryString("getp"),"n0")=0 then %>
<div style="width:350px;padding-top:4px;padding-bottom:7px;"><form name="form1" method="post" action="getpassword.asp?getp=n1" style="margin:0;">
第一步,输入用户名:<input name="username" type="text" id="username"><BR>
<input type="submit" name="Submit" value="进入第二步 »">
</form></div>
<% end if
set rs=server.createobject("adodb.recordset")
sql="select * from info where username='"&request.Form("username")&"'"
rs.open sql,conn,1,1
nr=rs("quest")
set rs=nothing
if strcomp(request.QueryString("getp"),"n1")=0 then %>
<div style="width:350px;padding-top:4px;padding-bottom:7px;"><form name="form1" method="post" action="getpassword.asp?getp=n2" style="margin:0;">
提示问题:<B><%=nr%></B><BR>
第二步,输入问题答案:<input name="username" type="text" size="35"><BR>
<input type="submit" name="Submit" value="进入第三步 »">
</form></div>
<% end if
set rsd=server.createobject("adodb.recordset")
sqld="select * from info where getpassword='"&request.Form("username")&"'"
rsd.open sqld,conn,1,1
nr=rsd("password")
set rsd=nothing
if strcomp(request.QueryString("getp"),"n2")=0 then %>
<form name="form1" method="post" action="getpassword.asp?getp=n3">
<table width="56%" border="0">
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="42%">第三步密码是:<%
if nr="" then
response.Write("答案不正确")
end if
response.Write(nr)
%></td>
<td width="58%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<% end if %>
<div id=copy style="text-align:center;"><a href="http://www.youwe.org/?user" target="_parent">Copyright ©<%=webmaster%></a><BR>有为明星加工厂 设计发布</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -