<!-- #include file="conn.asp" -->
<%
 title=trim(request.form("title"))
 content=trim(request.form("content"))
 from=trim(request.form("from"))
 types=request.form("types")
 if from="" then from="-" end if
 if types="" then types=0 end if
 set rs=server.createobject("adodb.recordset")
 sql="select * from news"
 rs.open sql,conn,1,3
 rs.addnew
 rs("title")=title
 rs("content")=content
 rs("types")=types
 rs("from")=from
 rs("pas")=0
 rs("hit")=0
 rs("ip")=Request.ServerVariables("REMOTE_HOST")
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
 response.write"<SCRIPT language=JavaScript>alert('投稿成功！本站将在最短的时间内审核！感谢您的参与！');"
response.write"this.location.href='index.asp';</SCRIPT>" 
response.end
 conn.close
 set conn=nothing
%>
 