写入问题
代码如下:程序代码:
<!--#include file="conn.asp"--> <% if request.cookies("godbook")("username")="" then response.Redirect("login.asp") end if %> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <% newsid=request.QueryString("newsid") bookid=request.QueryString("bookid") userid=request.QueryString("userid") if newsid="" then newsid=0 end if if bookid="" then bookid=0 end if content=server.HTMLEncode(Request.Form("content")) set rs=server.CreateObject("adodb.recordset") rs.open "select * from fbqqmes",conn,1,3 rs.addnew rs("content")=content rs("userid")=userid rs("newsid")=newsid rs("bookid")=bookid rs("myuserid")=request.cookies("godbook")("userid") rs.update rs.close set rs=nothing response.write "<script language=javascript>alert('发布成功!');history.go(-1);</script>" response.End %>
执行以后除content这个字段以外都可以录入数据库
唯独content这个字段却是空白的
望高人指点