www.gusucode.com > 盐城分类信息网asp源码程序 > admin/addsfznchk.asp

    <%
'***********************************
'本站由吉林信息网团队制作
'***********************************
'--------版权说明------------------
'吉林信息网官方网站:http://www.jl-e.com
'QQ:304133183  
'***********************************
%><!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
	dim sql
	dim rs
	dim biaoti
	dim neirong
	if request("nfrom")="" then
	response.write "请输入新闻标题!"
	response.end
	else
	biaoti=request("nfrom")
	end if
	if request("nbiaoti")="" then
	response.write "请输入新闻内容!"
	response.end
	else
	neirong=request("nbiaoti")
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select * from [sfzn]"
	rs.open sql,conn,1,3
	rs.addnew
    rs("nfrom")=biaoti
    rs("nbiaoti")=neirong
    rs("ndata")=now()
    rs.update
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing

%>
 <meta http-equiv="Content-Language" content="zh-cn">
<link href="inc_style.css" rel="stylesheet" type="text/css">
<title>增加新闻成功</title>
<p align="center">增加新闻成功 <a href="addsfzn.asp">返回</a></p>
<%
'***********************************
'本站由吉林信息网团队制作
'***********************************
'--------版权说明------------------
'吉林信息网官方网站:http://www.jl-e.com
'QQ:304133183  
'***********************************
%>