<%
if trim(request("action"))="add" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [news]",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("cont")=request.Form("cont")
rs("time")=request.Form("time")
rs.update
response.Write"<script>alert('信息添加成功');location.href='news_add.asp'</script>"
response.end
end if
%>