[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Getting an error message on submit

Has anyone seen this before?

Request object: 006~ASP 0207~Cannot use Request.Form~Cannot use Request.Form collection after calling BinaryRead."

I have a simple if statement throwing this error:

if Request.form("submitted") <> "" then
   response.write "Thanks for submitting"
end if
0
sl1nger
Asked:
sl1nger
  • 4
  • 3
2 Solutions
 
peh803Commented:
Are you using ASPUpload?
0
 
peh803Commented:
If so, then this might be useful to you...

From this link:
http://www.dmxzone.com/ShowDetail.asp?NewsId=1091

After you use the Pure ASP Upload you can't use the Request.Form collection. You should use instead UploadFormRequest(..)

So for example,instead of writing:
   Request.Form("myfield")

Now you should write:
   UploadFormRequest("myfield")

0
 
sl1ngerAuthor Commented:
ok. I am using an upload.  I wrote in the uploadformrequest and the new error is "variable undefined".
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
peh803Commented:
More good info on it here:
   http://www.webmasterworld.com/forum47/1088.htm
   
0
 
sl1ngerAuthor Commented:
I actually have 3 different forms in the page.  The first is the upload and later I call the other form to remove items from a list.  Could the read connection be closed and allow my page to function normally?  Or I wonder how I could use UploadFormRequest...
0
 
sl1ngerAuthor Commented:
As for the last web link... It puts me closer w/ objFileUp.Form("submitted"); however, my remove form that calls submitted is actually named frmRemove.
0
 
sl1ngerAuthor Commented:
ok, I think if I just change my form enctype from form-data.  It may work.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now