📄 bzmtv-9-3.asp
字号:
<!--#include file="bzmtvconst.asp"-->
<%CheckAdmin3%>
<%
founderr=false
username=request.form("username")
password=request.form("password")
oskey=request.form("oskey")
if username="" or password="" then
errmsg=errmsg+"<br>"+"<li>管理员名称和密码都不能为空!"
founderr=true
call error()
Response.End
end if
set rs=server.CreateObject("ADODB.RecordSet")
if request("act")="edit" and request.QueryString("id")<>"" then
id=request("id")
sql="select * from admin where id="& request.QueryString("id")
rs.open sql,conn,3,2
if not rs.eof then
rs("oskey")=oskey
rs("Username")=username
Rs("password") = md5(Request.Form("password"))
rs.update
end if
rs.close
elseif request("act")="add" then
sql="select * from admin where username='"&username&"'"
rs.open sql,conn,3,2
if (rs.eof and rs.bof) then
rs.addnew
rs("oskey")=oskey
rs("Username")=UserName
Rs("password") = md5(Request.Form("password"))
rs.update
end if
rs.close
end if
set rs=nothing
conn.close
set conn=nothing
response.redirect "bzmtv-9.asp"
%>
<html></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -