📄 admin_save.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
name=request.form("name")
links=request.form("links")
hefrom=request.form("hefrom")
heclass=request.form("heclass")
content=GetHtmlStr(request.form("content"))
pinkun=request.form("pinkun")
if pinkun=1 then
pinkun=false
else
pinkun=true
end if
rs.open "infor",conn,1,3
if name<>""and links<>""and hefrom<>""and heclass<>"" then
rs.addnew
rs("name")=name
rs("links")=links
rs("hefrom")=hefrom
rs("class")=heclass
rs("content")=content
rs("pinkun")=pinkun
rs.update
Response.Write "<script>alert(""添加成功!!"");location.href=""admin_list.asp"";</script>"
else
Response.Write "<script>alert(""你填写的内容不完整!!"");location.href=""admin_add.asp"";</script>"
Response.end
rs.close
set conn=nothing
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -