📄 del_msg.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
'删除新闻记录
if request.querystring("action")="multi" then
str_del=request.form("news_id")
if len(str_del)=0 then
response.Write "<script LANGUAGE='javascript'>alert('请选择要删除的留言!');history.go(-1);</script>"
response.end()
end if
deltxt="delete from msg where id in("&str_del&")"
conn.execute deltxt
conn.close
set conn=nothing
response.write("<script>window.alert('留言删除成功!');window.location.href='manage_msg.asp';</script>")
end if
if request.querystring("action")="sing" then
deltxt="delete from msg where id = "&request.querystring("msg_id")
conn.execute deltxt
conn.close
set conn=nothing
response.write("<script>window.alert('留言删除成功!');window.location.href='manage_msg.asp';</script>")
end if
'删除动作结束
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -