📄 asaveuser.asp
字号:
<%@ LANGUAGE = "vbscript" %>
<!--#include file ="../md5/md5.asp"-->
<!--#include file="security.asp"-->
<!--#include file="articleconn.asp"-->
<%if session("flag")>1 then
response.write "<script>alert('您的操作权限不够!');history.back();</script>"
response.end
end if
%>
<%
newpin=LCase(Request("newpin"))
flag=Request("flag")
newpin=MD5(newpin)
manager=LCase(Request("manager"))
submit=Trim(Request("submit"))
'//进行修改操作
set rs = server.createobject("adodb.recordset")
if submit="修改" then
'//修改用户密码
sql="select * from password where id="&request("id")
rs.open sql,conn,1,3
rs("name")=manager
rs("pwd")=newpin
rs("flag")=flag
rs.update
rs.close
set rs=nothing
conn.Close
set conn=Nothing
response.redirect "adminuser.asp"
end if
'//进行删除操作
if submit="删除" then
sql="delete from password where id="&request("id")
conn.Execute sql
conn.Close
set conn=Nothing
response.redirect "adminuser.asp"
end if
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body>
</body>
</html>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -