www.gusucode.com > 盐城分类信息网asp源码程序 > admin/addgonggaochk.asp
<!--#include file=conn.asp--> <!--#include file=cookies.asp--> <% dim sql dim rs dim biaoti dim neirong 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 [gonggao]" rs.open sql,conn,1,3 rs.addnew rs("biaoti")=biaoti rs("neirong")=neirong rs("data")=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="addgonggao.asp">返回</a></p>