日期:2014-05-17  浏览次数:20757 次

这个变量为什么传递失败啊
<%Server.ScriptTimeOut=5000%>
<%
dim   upload,file,formElement,formFile,iCount,fileExt,formPath,filename,c_yn,objFSO,content
username=request.cookies( "ijob ")( "username ")
content=request( "content ")
  id=trim(request( "id "))
set   rs=server.createobject( "adodb.recordset ")
sql   =   "select   id,tupian,c,mname   from   xinxi   where   username= ' "&username& " '   and   id=   "   &   cstr( "id ")
rs.open   sql,conn,1,3
if   rs.eof   then
response.write   "参数错误! "
cl
response.end
else
dim   news_content
news_content=request( "news_content ")
title=request.form( "title ")
set   rs1=server.createobject( "adodb.recordset ")
sql1   =   "select   *   from   pic "
rs1.open   sql1,conn,1,3
rs1.addnew
rs1( "mpic ")=news_content
rs1( "userid ")=rs( "id ")
rs1( "mname ")=rs( "mname ")
rs1( "title ")=title
rs1( "content ")=content
rs1.update
rs1.close
set   rs1=nothing
rs.close
set   rs=nothing
closedb
response.write   "图片成功上传! "
response.end
end   if
%>


提交成功后
rs1( "mpic ")=news_content
rs1( "title ")=title
rs1( "content ")=content

数据库里字段   mpic   title   content   都是空的
为什么么没内容那
高手指点下啊   在线等!

就39分拉   高手别闲少!谢谢啦!

------解决方案--------------------
response.write news_content & " <br> " '打印 news_content值
response.write title '打印title值.
response.end '强制终止程序运行.

如果什么也没显示,说明你request.form没传过来值.去看看form中的表单项是否是你后台处理时,request.form写的一样.

还有就是别改着一个页面,测试的是另一个地址上的页面.