get_pwd_step3.asp
上传用户:shxinnian
上传日期:2013-01-14
资源大小:155k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Windows_Unix

  1. <%response.buffer="True"%>
  2. <!--#include file="conn.asp"-->
  3. <%
  4. dim rs,sql
  5. dim uID,rname,answer
  6. answer=request.form("answer")
  7. rname=request.form("rname")
  8. uID=request("uID")
  9. set rs=Server.CreateObject("Adodb.Recordset")
  10. sql="select uID,pwd,answer,rname from member where uID='"&uID&"'"
  11. rs.open sql,conn,1,1
  12. If rs.eof Then
  13. %>
  14. <script language="javascript">
  15. alert("无此会员名,请返回首页登记新会员!")
  16. location.href="javascript:history.back()"
  17. </script>
  18. <%
  19. End If
  20. If rs("answer")<>answer Then
  21. Response.redirect"get_pwd_err.asp?content=答案"
  22. End If
  23. If rs("rname")<>rname Then
  24. Response.redirect"get_pwd_err.asp?content=真实姓名"
  25. End If
  26. %>
  27. <html>
  28. <head>
  29. <title>取回密码</title>
  30. <meta http-equiv="Content-Language" content="zh-cn">
  31. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  32. <meta name="Description" content="全国计算机等级考试鄂州大学考点网上报名系统">
  33. <meta name="Keywords" content="全国计算机等级考试鄂州大学考点网上报名系统">
  34. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  35. <meta name="ProgId" content="FrontPage.Editor.Document">
  36. <style type="text/css">
  37. <!---a:link      { color: #000080; font-family: Arial; text-decoration: underline }
  38. a:visited    { color: #680090; font-family: Arial; text-decoration: underline }
  39. a:hover      { color: red; text-decoration: none }
  40. body         { color: #000000; font-size: 9pt; line-height: 12pt; font-family: Arial }
  41. th           { font-size: 9pt; line-height: 12pt }
  42. td           { font-size: 9pt; line-height: 12pt }
  43. a.1:link     { font-family: Arial; text-decoration: none; color: black }
  44. a.1:visited  { font-family: Arial; text-decoration: none; color: black }
  45. a.1:hover    { font-family: Arial; text-decoration: none; color: silver }
  46. .form        { font-size: 9pt }
  47. ---></style>
  48. <script language="javascript">
  49. <!--
  50. if (parent.frames.length > 0) {
  51. parent.location.href = location.href;
  52. }
  53. // --></script>
  54. </head>
  55. <body bgcolor="#303430" topmargin="11" leftmargin="0">
  56. <div align="center">
  57. <center>
  58. <form method="POST" name="form1" language="javascript" onsubmit="return form1_onsubmit()" action="get_pwd_step3.asp">
  59. <table border="0" cellpadding="0" cellspacing="0" width="400" bgcolor="#FFFFFF" height="438">
  60. <tr>
  61. <td height="43" valign="middle" width="146">
  62.           <p align="center"><img border="0" src="images/title.gif" width="499" height="39"></p>
  63. </td>
  64. <td height="43" valign="middle" width="254"> </td>
  65. </tr>
  66. <tr>
  67. <td height="381" valign="top" width="398" colspan="2"></center>
  68. <div align="center">
  69. <center>
  70.               <table border="0" cellpadding="5" width="99%" cellspacing="4" height="368">
  71.                 <tr>
  72. <td width="100%" height="18"></td>
  73. </tr>
  74. <tr>
  75. <td width="100%" height="18"></td>
  76. </tr>
  77. <tr>
  78. <td width="100%" height="18">第三步:取得密码。</td>
  79. </tr>
  80. <tr>
  81. <td width="100%" height="18">
  82. <p align="center"></td>
  83. </tr>
  84. <tr>
  85. <td width="100%" height="25">
  86. <p align="center">请记住,您的密码是:<font color="red"><%=rs("pwd")%></font> 
  87. <%   
  88. conn.close   
  89. set conn=nothing   
  90. rs.close   
  91. set rs=nothing   
  92. %>   
  93. </td> 
  94. </tr> 
  95. <tr> 
  96. <td width="100%" height="25"></td>
  97. </tr>
  98. <tr>
  99. <td width="100%" height="27">
  100.                     <p align="center">回到   <a href="index.htm">首页</a> 
  101.                   </td>
  102. </tr>
  103. <tr>
  104. <td width="100%" height="107">
  105.                     <div align="center"></div>
  106.                   </td>
  107. </tr>
  108. </table>
  109. </center>
  110. </div>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td height="14" width="398" colspan="2">
  115. <p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></td>
  116. </tr>
  117. </table>
  118. </form>
  119. </div>
  120. </body>
  121. </html>