<!--#include file="byshop_conn.asp"-->
<!--#include file="../md5.asp"-->
<!--#include file="cookie.asp" -->
<%
pass=md5(trim(request.form("password")))
response.write pass
response.write request.cookies("byshop")("user")
set rs=server.CreateObject ("adodb.recordset")
sql="select * from [byshop_user] where user='"&request.cookies("byshop")("user")&"' and pass="&pass
rs.open conn,1,3
if  rs.eof then
response.write rs("pass")
response.write"<SCRIPT language=JavaScript>alert('密码修改失改！');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
else
rs("pass")=md5(trim(request("newpassword")))'密码
rs.update
rs.close
set rs=noting
response.Cookies("byshop")("user")=""
conn.close
  response.write"<SCRIPT language=JavaScript>alert('恭喜您，您的密码修改成功，请重新登录！');"
   response.write"this.location.href='login.asp';</SCRIPT>" 
   response.end 
      
%>
<%end if%> 
 