📄 question.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/connUser1.asp" -->
<%
var rsQuestion__MMColParam = "1";
if (String(Request.Form("Username")) != "undefined" &&
String(Request.Form("Username")) != "") {
rsQuestion__MMColParam = String(Request.Form("Username"));
}
%>
<%
var rsQuestion = Server.CreateObject("ADODB.Recordset");
rsQuestion.ActiveConnection = MM_connUser1_STRING;
rsQuestion.Source = "SELECT Username, Question FROM Userinfo WHERE Username = '"+ rsQuestion__MMColParam.replace(/'/g, "''") + "'";
rsQuestion.CursorType = 0;
rsQuestion.CursorLocation = 2;
rsQuestion.LockType = 1;
rsQuestion.Open();
var rsQuestion_numRows = 0;
%>
<% var MM_paramName = ""; %>
<%
// *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
// create the list of parameters which should not be maintained
var MM_removeList = "&index=";
if (MM_paramName != "") MM_removeList += "&" + MM_paramName.toLowerCase() + "=";
var MM_keepURL="",MM_keepForm="",MM_keepBoth="",MM_keepNone="";
// add the URL parameters to the MM_keepURL string
for (var items=new Enumerator(Request.QueryString); !items.atEnd(); items.moveNext()) {
var nextItem = "&" + items.item().toLowerCase() + "=";
if (MM_removeList.indexOf(nextItem) == -1) {
MM_keepURL += "&" + items.item() + "=" + Server.URLencode(Request.QueryString(items.item()));
}
}
// add the Form variables to the MM_keepForm string
for (var items=new Enumerator(Request.Form); !items.atEnd(); items.moveNext()) {
var nextItem = "&" + items.item().toLowerCase() + "=";
if (MM_removeList.indexOf(nextItem) == -1) {
MM_keepForm += "&" + items.item() + "=" + Server.URLencode(Request.Form(items.item()));
}
}
// create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL + MM_keepForm;
if (MM_keepBoth.length > 0) MM_keepBoth = MM_keepBoth.substring(1);
if (MM_keepURL.length > 0) MM_keepURL = MM_keepURL.substring(1);
if (MM_keepForm.length > 0) MM_keepForm = MM_keepForm.substring(1);
%>
<html>
<head>
<title>提示问题</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFCC">
<p align="center"><font color="#0000FF" size="5">密码查询</font></p>
<% if (!rsQuestion.EOF || !rsQuestion.BOF) { %>
<p align="center">您注册的密码提示为:<%=(rsQuestion.Fields.Item("Question").Value)%></p>
<p align="center">请输入注册的密码提示答案:</p>
<form name="form1" method="post" action="Showpass.asp">
<div align="center">
<p>
<input name="Answer" type="text" id="Answer" size="20">
<input name="Username" type="hidden" id="Username" value="<%=(rsQuestion.Fields.Item("Username").Value)%>">
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</div>
</form>
<% } // end !rsQuestion.EOF || !rsQuestion.BOF %>
<p align="center"> </p>
<% if (rsQuestion.EOF && rsQuestion.BOF) { %>
<p align="center">对不起,没有这个用户名</p>
<p align="center">请单击<a href="Lostpass.asp">这里</a>重新输入用户名</p>
<% } // end rsQuestion.EOF && rsQuestion.BOF %>
<p align="center"> </p>
<p align="center"><a href="../index.asp">返回主页</a></p>
</body>
</html>
<%
rsQuestion.Close();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -