⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newsadd.asp

📁 中国电视购物网电子商务系统
💻 ASP
字号:
<%@ Language=VBScript %>
<!--#include file="../../include/function.asp"-->
<!--#include file="../../include/conn.asp"-->
<%
title=chkstr(Request.Form("title"))
body=htmlencode(Request.Form("body"))
pic=chkstr(Request.Form("pic"))
n_type=Request.Form("n_type")
if n_type="news" then
		sql="insert into news (news_title,news_body,news_pic) values('"&title&"','"&body&"','"&pic&"')"
else if n_type="report" then
		sql="insert into report (re_title,re_body,re_pic) values('"&title&"','"&body&"','"&pic&"')"
else if n_type="cp" then 
		sql="insert into cp(cp_title) values('"&title&"')"
else
		sql="insert into hync(hy_title) values('"&title&"')"
end if
end if
end if
conn.Execute(sql)
if conn.Errors.Count=0 then
call conn_end
%>
<SCRIPT LANGUAGE=javascript>
<!--
alert("信息已录入!");
window.location.href="news.asp";
//-->
</SCRIPT>
<%end if%>

⌨️ 快捷键说明

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