Request 对象, ASP 0207 (0x80004005)
调用 BinaryRead 之后,不能使用 Request.Form 集合。
那我应该用什么方法取得表单上的值呀
请高手帮助我一下
<!--#include FILE="conn.asp"--> <%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrB(13) & chrB(10)
divider=leftB(formdata,clng(instrb(formdata,bncrlf))-1)
datastart=instrb(formdata,bncrlf & bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
set rec=server.createobject("ADODB.recordset") rec.Open "SELECT * FROM [news] where id is null",con,1,3 title=request.Form("title") comment=request.Form("comment") rec.addnew rec("pic1").appendchunk mydata rec("title")=title rec("comment")=comment rec("fbsj")=Now() rec.update
rec.close
set rec=nothing
set connGraph=nothing %> <body bgcolor="#FFFFFF"> <script language=vbscript> MsgBox "新闻已成功发布,感谢您的新闻中心工作" location.href = "javascript:history.back()"
</script>