⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findpass2.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="HMconnection.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<%dim username
username=trim(request("username"))
if username="" then%>
<script language="vbscript">
msgbox"请输入你的用户名!"
location.href="javascript:history.go(-1)"
</script>
<%else
  dim fpwSQL,fpwRS,Answer,Question
  set fpwRS=server.createobject("adodb.recordset")
  fpwSQL="select * from user where username='"&username&"'"
  fpwRS.open fpwSQL,conn,1,1
   if fpwRS.bof and fpwRS.eof then
   fpwRS.close
   set fpwRS=nothing%>
<script language="vbscript">
msgbox"对不起,没有找到你所输入的用户资料!"
location.href="javascript:history.go(-1)"
</script>
<%end if%>
<%Answer=fpwRS("Answer")
Question=fpwRS("Question")
fpwRS.close
set fpwRS=nothing
end if%>
<HEAD>
<TITLE><%=webname%>--修复密码之二</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK href="style/style.css" rel=stylesheet type=text/css>
</head>

<body bgcolor="#FFFFFF" text="cc9900" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  >
<table  align=center width=540 height="100%">
  <form name="FP2Form"  action="findpass3.asp" method=post>
<tr>
      <td align=center valign="middle" width="100%"> 
        <table border=0 cellpadding=0 cellspacing=0 width="100%">
          <tr>
<td height="50" align="center">
    <br><font color="#99CC33" size="2"><b>::修复密码-->方法一::</b></font> 
                  <hr align="center" color="#00CCFF" width="80%" noshade size="2">
               <br>
              <div align="left"> <font color="#FF0000">第二步: 请回答问题:</font></div> 
                <table bordercolor="#262626" width="333" height="120">
                  <tr style=display:none> 
                    <td width=40% align=right> </td>
                    <td width="60%">
                      <input maxlength=20 size=15 name=username style="border: 1px solid #ff0000" value="<%=username%>" readonly>
                      </td>
                  </tr>
                  <tr> 
                    <td align=right width="40%"><font color="#000000">提示问题:</font></td>
                    <td width="60%"> <font color="#000000"> <font color="#FF0000"><%=question%></font></font></td>
                  </tr>
                  <tr> 
                    <td align=right width="40%"><font color="#000000">问题答案:</font></td>
                    <td width="60%"> <font color="#000000"> 
                      <input maxlength=20 size=20 name=answer style="border: 1px solid #000000">
                      </font></td>
                  </tr>
                  <tr align=center> 
                    <td colspan=2> <input type="hidden" name="submit" value="mysubmit"> 
					<input onClick="return check();"  type="image" border="0" name="submit" value="mysubmit" src="images/ok.gif" width="45" height="20" align=absMiddle>
                      &nbsp;&nbsp;<a href="####" onClick=reset()><img src="images/esc.gif" width="45" height="20" border="0" align=absMiddle></a></td>
                  </tr>
                </table>
<br>
</td>
</tr>
</table>
      </td>
</tr>
</form>
</table>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
   if(checkspace(document.FP2Form.answer.value)) {
	document.FP2Form.answer.focus();
    alert("用户名不能为空,请重新输入!");
	return false;
  }

}


function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -