www.gusucode.com > 528人才招聘网整站源代码-蓝色经典 精简版 2.0源码程序 > search_pwd3.asp
<!--#include file="info.asp"--> <!--#include file="conn.asp"--> <!--#include file="md5.asp"--> <% if instr(request("name"),"'")<>0 then response.write "<script language=JavaScript>" & chr(13) & "alert('非法数据提交!');" & "history.back()" & "</script>" Response.End end if call codeistrue("search_pwd1.asp") name=request("name") if request("user")="1" then sql="select answer from in_user where ac='"&name&"'" rs.open sql,conn,1,1 if rs("answer")<>md5(request("answer")) then response.write "<script language=JavaScript>" & chr(13) & "alert('密码答案错误!');" & "history.back()" & "</script>" rs.close Response.End end if else if request("user")="2" then sql="select answer from en_user where ac='"&name&"'" rs.open sql,conn,1,1 if rs("answer")<>md5(request("answer")) then response.write "<script language=JavaScript>" & chr(13) & "alert('密码答案错误!');" & "history.back()" & "</script>" rs.close Response.End end if end if end if %> <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="css.css" type="text/css"> <title><%=webname%> - 找回密码</title> </head> <body> <!--#include file="top.asp"--> <div align="center"> <table border="0" width="760" cellspacing="0" cellpadding="0" id="table1" height="421"> <tr> <td style="border-left: 1px solid #0086DF; border-right: 1px solid #0086DF" width="760" valign="top" bgcolor="#FEFBF4"> <div align="center"> <table border="0" width="705" cellspacing="0" cellpadding="0" id="table2" height="377"> <tr> <td height="86" width="214"> <img border="0" src="images/spwd.gif" width="282" height="90"></td> <td height="86" width="237"> </td> <td height="86" width="128"> <img border="0" src="images/spwd1.gif" width="128" height="90"></td> <td height="86" width="58"> </td> </tr> <tr> <td width="705" colspan="4"> <script language=javascript> function test() { if (document.form1.pwd.value==""){ alert("请输入密码!"); document.form1.pwd.focus(); return false } if (document.form1.pwd.value!=document.form1.pwd1.value){ alert("两次密码输入不一致!"); document.form1.pwd.focus(); return false } return true if (document.form1.code.value==""){ alert("请输入验证码!"); document.form1.code.focus(); return false } } function reset_form() { document.form1.name.value=""; document.form1.pwd.value=""; } </script> <form name="form1" method="POST" action="search_pwd4.asp" onsubmit="return test()"> <div align="center"> <table border="0" width="300" cellspacing="0" cellpadding="0" id="table3" height="118"> <tr> <td height="25" width="300" colspan="3"> <b>√第三步:</b></td> </tr> <tr> <td height="25" width="99" align="center"> 请输入新密码:</td> <td height="25" width="201" colspan="2"> <input type="password" name="pwd" size="25" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td> </tr> <tr> <td height="25" width="99" align="center"> 请再次输入:</td> <td height="25" width="201" colspan="2"> <input type="password" name="pwd1" size="25" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td> </tr> <tr> <td height="26" width="99" align="center"> 请输入验证码:</td> <td height="26" width="44" align="center"> <input name="code" size="4" style="float: left; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td> <td height="26" width="157" align="center"> <p align="left"><%call getcode()%></td> </tr> <tr> <td height="60" width="300" align="center" colspan="3"> <input type="hidden" name="name" value="<%=name%>"> <input type="hidden" name="user" value="<%=request("user")%>"> <input type="hidden" name="answer" value="<%=request("answer")%>"> <input type="button" value="上一步" onclick='history.back()' name="B2"> <input type="submit" value="下一步" name="B1"></td> </tr> </table> </div> </form> <p> </td> </tr> </table> </div> </td> </tr> </table> <% rs.close set rs=nothing set conn=nothing %> </div> <!--#include file="base.asp"--> </body> </html>