user_save.asp

来自「使用Asp+Access+FSO+Jmail+Servu开发」· ASP 代码 · 共 24 行

ASP
24
字号
<!--#include file="admin.asp"-->
<!--#include file="../inc/md5.asp"-->
<%
chk_admin_login(2)
userid=request.Form("usernum")
sql="select * from [user] where userid="&userid
rs.open sql,conn,1,3
rs("star")=Request.Form("star")
rs("isgood")=Request.Form("isgood")
if Request.Form("adddays")<>"" then rs("stopdate")=rs("stopdate")+Request.Form("adddays")
rs("siteimg")=Request.Form("siteimg")
rs("money")=Request.Form("money")
rs("point")=Request.Form("point")
rs("space")=Request.Form("space")
rs("asp")=Request.Form("asp")
if request.form("password")<>rs("password") then
rs("password")=md5(request.form("password"))
end if
rs.update
rs.close
set rs=nothing
response.write"<script>alert('用户资料修改成功!');location.href='user_admin.asp'</script>"
response.end
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?