?? forget.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="nimda/config.asp"-->
<!--#include file="edulcni/conn.asp"--> <%
dim tmp,step,UserNamee
step=request("step")
'第二步傳遞變量
if step=2 then
tmp=request.querystring("UserQuestion")
UserNamee=request.querystring("UserNamee")
end if
'確認(rèn)是否存在此用戶
set rs=server.CreateObject("adodb.recordset")
if not isempty(request("Submit")) and step=1 then
rs.open "select UserQuestion,UserAnswer from [user] where UserName='"&trim(request("UserName"))&"' ",conn,1,1
if rs.eof and rs.bof then
call MsgBox("查無此用戶,請返回!","Back","None")
response.end
else
response.redirect "forget.asp?step=2&UserQuestion="&rs("UserQuestion")&"&UserNamee="&trim(request("UserName"))
end if
rs.close
end if
set rs=nothing%>
<!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>E書部落—網(wǎng)上書城</title>
<link href="style.css" rel="stylesheet" type="text/css">
</style>
<!-- European format dd-mm-yyyy -->
<script language="JavaScript" src="calendar.js"></script>
</head>
<body>
<!--#include file="head.htm"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="300" align="left" valign="top">
<br> <br> <br> <%if step=1 or step="" then%><FORM name=frmdata method=post action="">
<table border=0 align="center" cellpadding=0 cellspacing=5>
<tbody>
<tr align="left">
<td colspan="2"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/w.gif"></td>
<td style="color:#415373">取回密碼</td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td width="108" align=right>請輸入你的用戶名:</td>
<td width="276" align=left><input type="text" name="UserName">
<input type="submit" name="Submit" value="提交">
<input name="step" type="hidden" id="step" value="1"></td>
</tr>
</table>
</form><%end if%>
<%if step=2 then%><FORM name=frmdata method=post action="repws.asp">
<table border=0 align="center" cellpadding=0 cellspacing=5>
<tbody>
<tr align="left">
<td colspan="2"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/w.gif"></td>
<td style="color:#415373">取回密碼</td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td width="108" align=right>您的密碼提問:</td>
<td width="276" align=left><%=tmp%></td>
</tr>
<tr>
<td align=right>您的密碼答案:</td>
<td align=left><input TYPE="Password" name="UserAnswer"> </td>
</tr>
<tr>
<td colspan="2" align=center><input name="Submit" type="submit" id="Submit" value="提交">
<input name="UserName" type="hidden" id="UserName" value="<%=UserNamee%>"> </td>
</tr>
</table>
<br>
<br>
</FORM><%end if%>
</td>
</tr>
</table>
<!--#include file="foot.htm"-->
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -