multipart/form-data help!!

P

POLILOP

I have a form (which is multipart/form-data) it has a file field and a
select.
When i submit this form i can get the file but i can't get the value of the
select?????
any ideas???
Thx
 
P

Patrice

What have you tried ?

Generally you have use to use the Form collection that is provided by the
upload component (as the component takes care of "parsing" the whole input
stream) instead of using the "native" Request.Form collection.
 
P

paul

You'll want to check the documentation of your particular file
uploading component or class about how to refer to regular form fields
as the usual syntax would not work (as you already found out). Usually
there is a syntax that can be used instead of the usual
Request.Form(...). And this assumes that you already have this added
into the form tag: enctype="multipart/form-data"

So for example instead of something like this:
LName = Request.Form("LName")

With the ASP File Upload Using VBScript by John R. Lewis you'd want to
use syntax like this:
LName = objFileUpload.Form.Item("LName")

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top