Forum Moderators: open

Message Too Old, No Replies

unable to receive parameters with Request.Form

Unable to receive parameters from the previous page while mail object

         

sunitha_mvd

7:12 am on Oct 28, 2003 (gmt 0)

10+ Year Member



Hi!Matt

con't i able to receive parameters from the previous page using Request.Form("accno") from the previous page.
In the same page i am doing uploading and mail sending.

when i write this it is saying that

Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/uploadpersists.asp, line 75

Cannot use Request.Form collection after calling BinaryRead.

so,i want to send some parameters(which i send from the previous page)along with Mail.Body,how is it possible,

could you please tell be bit early.

thanks and regards,

Easy_Coder

9:53 pm on Oct 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have the following in your form tag? ENCTYPE="multipart/form-data"

It sounds like your form post is set up to upload a binary object like an image for example.

This being the case you will not be able to access the Request.Form collection. The Object your using should provide a method to retrieve the values from your form.

I've run into this using Infomentums file upload object but was able to get to my form fields after reading their SDK.

bmcgee

4:39 am on Oct 30, 2003 (gmt 0)

10+ Year Member



The form collection gets moved into the upload object.

If you declared:
Set oUpload = Server.CreateObject("Persits.Upload.1")

Then you would use:
oUpload.Form("form-field-name") instead of Request.Form("form-field-name") to access the form field.