📄 updatereturn.asp
字号:
<!--#include file="connection.asp" -->
<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>New Page 1</title>
<meta name="Microsoft Theme" content="none">
</head>
<body background=images/cyprbk.jpg>
<p align=center>
<br><br><br>
<%
account=Request("T1")
oldpwd=Request("T2")
newpwd1=Request("T3")
newpwd2=Request("T4")
if(account="" or oldpwd="" or newpwd1="" or newpwd2="") then
Response.Write "用户名和密码都不能为空!"
else
if(newpwd1<>newpwd2) then
Response.Write "您两次输入的新密码不同,请重新输入!"
else
sql="select count(*) from username where account=" & SqlStr(account) & " and pwd=" & SqlStr(oldpwd)
set rs=conn.Execute(sql)
if(rs.Fields(0).Value=0) then
Response.Write "对不起,您输入的用户名和原有密码不匹配,您无权更改该用户密码!"
else
sql="update username set pwd=" & SqlStr(newpwd1) & "where account=" & SqlStr(account)
conn.Execute sql
Response.Write "更改密码成功,恭喜您!"
End if
rs.close
End if
End if
%>
</p>
<% conn.close %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -