<!-- #include file="conn.asp" -->
<%
 title=trim(request.form("title"))
 content=trim(request.form("content"))
 iname=trim(request.form("iname"))
 newsid=request.form("newsid")
 if iname="" then iname=Request.ServerVariables("REMOTE_HOST") end if
 if content="" then content="-" end if
 set rs=server.createobject("adodb.recordset")
 sql="select * from lun"
 rs.open sql,conn,1,3
 rs.addnew
 rs("title")=title
 rs("content")=content
 rs("iname")=iname
 rs("newsid")=newsid
 rs("pas")=1
 rs("hit")=0
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
 response.write"<SCRIPT language=JavaScript>alert('发布成功！感谢参与！');"
response.write"this.location.href='news_info.asp?id="&newsid&"';</SCRIPT>" 
response.end
 conn.close
 set conn=nothing
%>
 