📄 change_pwd_save.asp
字号:
<!--#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='ctrl.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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -