<!--#include file="../inc/conn2.asp" -->
<!--#include file="../sy/inc/md5.asp" -->
<%
username=request("username")
passwd=md5(trim(request.form("passwd")))
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [com_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=utf-8">
<style>
*{margin:0; padding:0; -webkit-text-size-adjust:none;}
body{margin:0px; background:#fff;}
TD {color: #333; font-family:Verdana,tahoma,Arial; font-size:12px; line-height:180%;}
div {color: #333; font-family:Verdana,tahoma,Arial; font-size:12px; line-height:180%;}
A:link {COLOR: #171766; text-decoration:none;}
A:visited {COLOR: #171766; text-decoration:none;}
A:hover {Color: #F00; text-decoration:none; }
</style>
</head>
<body topmargin="20" leftmargin="0" oncontextmenu="self.event.returnValue=false">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:20px;">
    
<table border="0" cellpadding="10" cellspacing="1" width="100%" bgcolor="#cccccc" style="border-collapse: collapse" align="center">
<tr>
<td height="100" bgcolor="#ffffff" > 
<p align="center">新密码设置成功，请返回首页<a href="Member.asp" target="_blank">重新登录</a>！</p>
<p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></p>
</td>
</tr>
</table>
    
    </td>
  </tr>
</table>


</body>
</html>