<!--#include file="../0.asp"--><!--#include file="../../../conn/zkconn.asp"-->
<%
w=request("w")
d=request("d")
dz=request("dz")
userid=request("id")

If w="" Then
response.write "SORRY <br>"
response.write "请输入问题内容"
response.end
end if
If d="" Then
response.write "SORRY <br>"
response.write "请输入问题答案"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from user_faq "
rs.open sql,conn,1,3
rs.addnew
rs("w")=w
rs("d")=d
if dz<>"" then
rs("dz")=1
else
rs("dz")=0
end if
rs("userid")=userid
rs.update
rs.close
set rs=nothing
%>

<html>
<head>
<title>添加成功!</title>
<meta http-equiv=refresh content="1; url=add.asp">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../css/css.css" rel="stylesheet" type="text/css">
</head>
            
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="300" align="center" cellpadding="0" cellspacing="0">
  <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                
    <td align="center"><b><font color="#FF3333">添加成功!</font></b></td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr> 
                <td align="center"><a href="javascript:history.back(-1)">点击这里回到添加模式</a></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table>
</body>
</html>