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

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

开发平台:

Windows_Unix

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim pwd,cpwd,uID
  4. uID=request.cookies("uID")
  5. pwd=request.form("pwd")
  6. cpwd=request.form("cpwd")
  7. If pwd<>cpwd Then
  8. response.write "<script>alert('对不起,您两次输入的密码不一样。');history.back();</Script>"
  9. End If
  10. dim rs,sql
  11. set rs=Server.CreateObject("Adodb.Recordset")
  12. sql="select pwd from member where uID='"&uID&"'"
  13. rs.open sql,conn,1,3
  14. rs("pwd")=pwd
  15. rs.update
  16. rs.close
  17. set rs=nothing
  18. conn.close
  19. set conn=nothing
  20. response.write "<script>alert('恭喜您,密码修改成功!');location.href='user_ctrl_panel.asp';</Script>"
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  25. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  26. <meta name="ProgId" content="FrontPage.Editor.Document">
  27. <title></title>
  28. </head>
  29. <body>
  30. </body>
  31. </html>