📄 nopass2.asp
字号:
<!--#include file="conn.asp"-->
<%dim d_webname
d_webname=request.form("d_webname")
set rs1=server.CreateObject("ADODB.RecordSet")
rs1.Open "Select * from duser where d_webname='"&d_webname&"'",conn
if rs1.eof then
response.write "<script language=javascript>" & chr(13) & "alert('对不起,没有这个帐号,请重新输入!');" & "history.back()" & "</script>"
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="style.css" rel=stylesheet>
<title>忘记密码</title>
</head>
<script language="VBScript">
<!--
Sub Checkdata()
If nopass2.d_answer.value = empty then
Window.Alert"密码答案没有填写"
Exit Sub
end if
nopass2.submit
end sub
-->
</script>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="758">
<tr>
<td>
<p align="center"><!--#include file="head.asp"--></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="758">
<tr>
<td width="190"><!--#include file="left.asp"--></td>
<td width="566" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="1">
<tr>
<td width="100%" background="pic/line_gb.gif" height="1"></td>
</tr>
<tr>
<td width="100%" height="14">
<div align="center">
<form name="nopass2" method="post" action="nopass3.asp">
<table border="0" cellpadding="0" cellspacing="0" width="300" height="92">
<tr>
<td colspan="2" bgcolor="#C0C0C0" height="18" width="298">
<p align="center"><b>寻回密码</b> 第二步</td>
</tr>
</center>
<tr>
<td bgcolor="#EEEEEE" colspan="2" width="298" height="22">
<p align="center">密码问题:<b><font color="#FF0000"><%=rs1("d_question")%></font></b></td>
</tr>
<center>
<tr>
<td bgcolor="#EEEEEE" width="100" height="25">
<p align="center">密码答案:</p>
</td>
<td bgcolor="#EEEEEE" width="200" height="25"><input type="text" name="d_answer" size="20" style="border: 1 solid #000000"></td>
</tr>
<tr>
<td bgcolor="#EEEEEE" colspan="2" width="298" height="27">
<p align="center"><input type="button" value="获取密码" name="B1" ONCLICK="Checkdata"></p>
</td>
</tr>
</table>
</form>
<%end if
rs1.Close
set rs1=Nothing
conn.Close
set conn=Nothing%>
</div>
<p> </p>
<p> </center></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="758">
<tr>
<td>
<p align="center"><!--#include file="end.asp"--></td>
</tr>
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -