<!--#include file=CONN.ASP-->
<!--#include file=foxx.asp-->
<!--#include file="config.asp"-->
<!--#include file="usercookies.asp"-->
<link href="fox.css" rel="stylesheet" type="text/css">
<%dim rs,sql,biaoti,neirong,username
    username=request("username")
	if request("biaoti")="" then
	response.write "请输入新闻标题!"
	response.end
	else
	biaoti=request("biaoti")
	end if
	if request("neirong")="" then
	response.write "请输入新闻内容!"
	response.end
	else
	neirong=request("neirong")
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select * from [FOX_usergonggao]"
	rs.open sql,conn,1,3
	rs.addnew
	rs("username")=username
    rs("biaoti")=biaoti
    rs("neirong")=neirong
    rs("data")=now()
    rs.update
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing

   Response.Write "<script>alert('发布成功！');this.location.href='gonggaoma.asp';</SCRIPT>"
     response.end
Response.Redirect "gonggaoma.asp"
%></body></html>