change_pwd_save.asp
上传用户:shxinnian
上传日期:2013-01-14
资源大小:155k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Windows_Unix
- <!--#include file="conn.asp"-->
- <%
- dim pwd,cpwd,uID
- uID=request.cookies("uID")
- pwd=request.form("pwd")
- cpwd=request.form("cpwd")
- If pwd<>cpwd Then
- response.write "<script>alert('对不起,您两次输入的密码不一样。');history.back();</Script>"
- End If
- dim rs,sql
- set rs=Server.CreateObject("Adodb.Recordset")
- sql="select pwd from member where uID='"&uID&"'"
- rs.open sql,conn,1,3
- rs("pwd")=pwd
- rs.update
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- response.write "<script>alert('恭喜您,密码修改成功!');location.href='user_ctrl_panel.asp';</Script>"
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <title></title>
- </head>
- <body>
- </body>
- </html>