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

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

开发平台:

Windows_Unix

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