<!--#include file="conn.asp"-->
<!--#include file="denlu.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from Faq where id=0"
rs.open sql,conn,3,2

rs.addnew
rs("title")=trim(request("title"))
rs("setname")=trim(request("setname"))
rs("setmsg")=trim(request("setmsg"))
rs("mgtype")="常见问题"
rs("replymsg")=trim(request("replymsg"))
rs("isreply")=request("isreply")
rs("replytime")=date()
rs.update

%>
<SCRIPT LANGUAGE="JavaScript">

  window.alert("你已经添加成功！");
  window.location.href="faq.asp";

</SCRIPT>
