📄 save_gonggao_edit.asp
字号:
<!--#include file="check_admin.asp"-->
<!--#include file="conn_admin.asp" -->
<%
If Request("gonggao_tit")="" Then
Response.Write"<br><center>公告栏标题不可以为空!<font color=#ff0000><a href='Javascript:window.history.go(-1)'>返回</a></font></center>"
Response.End
End If
If Request("EditorValue")="" Then
Response.Write"<br><center>公告内容不可以为空!<font color=#ff0000><a href='Javascript:window.history.go(-1)'>返回</a></font></center>"
Response.End
End If
id=Request.QueryString("id")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM gonggao where id="&id
rs.Open sql,conn,1,3
rs("gonggao_tit")=Request.Form("gonggao_tit")
rs("txtcontent")=Request.Form("EditorValue")
%>
<script language=Javascript>
<!--
alert("您的信息已经修改成功!");
window.location="admin_gonggao.asp"
-->
</script>
<%
rs.Update
rs.Close
Set rs=Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -