?? getpwd2.asp
字號:
<!--#include file=conn.asp -->
<!--#include file=webconfig.asp -->
<%
username=request.form("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [sh_user] where username='"&username&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("這個用戶還沒有注冊呢,請注冊!");window.close();
response.End
</script>
<%
End If
%>
<html>
<head>
<title>取回密碼 | 回答問題</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="inc/css.css">
<script language="javascript">
<!--
function form1_onsubmit() {
if (document.form1.answer.value=="")
{
alert("請輸入您的問題答案。")
document.form1.answer.focus()
return false
}
}
// --></script>
</head>
<body oncontextmenu="self.event.returnValue=false">
<div align="center"><br>
<form method="POST" name="form1" language="javascript" onsubmit="return form1_onsubmit()" action="getpwd3.asp?username=<%=username%>">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<table border="0" cellpadding="0" width="100%" cellspacing="0" >
<%if rs("quesion")<>"" then%>
<tr>
<td width="100%" align="center">
<p><strong>請回答下列問題</strong></td>
</tr>
<tr>
<td width="100%" height="22" align="center">
<p>問題:<font color="red"><%=rs("quesion")%></font>
<%
conn.close
set conn=nothing
%>
</td>
</tr>
<tr>
<td width="100%" align="center">
<p>答案:
<input type="text" name="answer" size="12" class="form">
<br><br>
<input name="imageField" type="image" src="images/xyb.gif" width="54" height="18" border="0" onFocus="this.blur()">
<p> 如果您忘記了答案,請與<a href="mailto:<%=webemail%>">管理員</a>聯系!
<br><a href="javascript:window.close()" class="1">關閉窗口</a>
</td>
</tr>
<%end if%>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -