gusucode.com > 爱美尔女性商城源码 1.0源码程序 > getpwd2.asp

    <!--#include file=conn.asp -->
<!--#include file=webconfig.asp -->
<%
username=request.form("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from bjx_User where username='"&username&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢,请到首页注册吧!")
location.href="index.asp"
</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 href="css/style.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
function form1_onsubmit() {
if (document.form1.answer.value=="")
	{
	alert("请输入您的问题答案。")
	document.form1.answer.focus()
	return false
	}
}
// --></script>
</head>
<body topmargin="20" leftmargin="0" oncontextmenu="self.event.returnValue=false">
<form method="POST" name="form1" language="javascript" onSubmit="return form1_onsubmit()" action="getpwd3.asp?username=<%=username%>">
<table border="0" cellpadding="10" cellspacing="1" width="400" bgcolor="#cccccc" style="border-collapse: collapse" align="center">
<TR><TD bgColor=#ffffff height=1></TD></TR>
<TR><TD align=center height=30>第二步:请回答下列问题。</TD></TR>
<tr bgcolor="#ffffff"> 
<td height="100">  
<table border="0" cellpadding="0" width="99%" cellspacing="0" height="1" style="border-collapse: collapse" bordercolor="#111111">
<%if rs("quesion")<>"" then%>
<tr> 
<td width="100%" height="22">
问 题:
<font color="red"><%=rs("quesion")%></font> 
	<%     
conn.close     
set conn=nothing     
%>
</td>
</tr>
<tr> 
<td width="100%" height="1">答 案:
<input class=wenbenkuang type="text" name="answer" size="18">
<input class=go-wenbenkuang name="imageField" type="submit" value=" 下一步 " onFocus="this.blur()">
<p>如果您设置的提示问题或答案为空,不能找回密码!请与<a href="mailto:<%=webemail%>">管理员</a>联系取回您的密码!</p>
</td>
</tr>
<%end if%>
</table>
<p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></p>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>