gusucode.com > 爱美尔女性商城源码 1.0源码程序 > getpwd4.asp
<!--#include file=conn.asp --> <!--#include file="md5.asp"--> <% username=request("username") passwd=md5(trim(request.form("passwd")),16) set rs=Server.CreateObject("Adodb.Recordset") sql="select * from bjx_User where username='"&username&"'" rs.open sql,conn,1,3 If rs.eof Then %> <script language="javascript"> alert("这个用户还没有注册呢,请到首页注册吧!") location.href="javascript:history.back()" </script> <% else rs("userpassword")=passwd rs.update end if rs.close set rs=nothing conn.close set conn=nothing %> <html><head><title>取回密码</title> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="css/style.css" rel="stylesheet" type="text/css"> </head> <body topmargin="20" leftmargin="0" oncontextmenu="self.event.returnValue=false"> <table cellpadding="0" cellspacing="0" width="320" style="border-collapse: collapse" border="0" align="center"> <tr> <td height="100"> <p align="center">新密码设置成功,请返回首页<a href="index.asp">重新登录</a>!</p> </td> </tr> <tr> <td> <p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></p></td> </tr> </table> </body> </html>