468,541 Members | 1,722 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,541 developers. It's quick & easy.

multipart/form-data help!!

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
Nov 22 '05 #1
3 1598
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.

--
Patrice

"POLILOP" <fmatosic@@inet.hr> a écrit dans le message de
news:uT**************@TK2MSFTNGP12.phx.gbl...
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

Nov 22 '05 #2
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

Nov 22 '05 #3
Nice i found it thx
<pa**@bullschmidt.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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

Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

34 posts views Thread by Niels Berkers | last post: by
10 posts views Thread by Gregory A Greenman | last post: by
1 post views Thread by blaine | last post: by
2 posts views Thread by Chris Millar | last post: by
7 posts views Thread by Mark Waser | last post: by
1 post views Thread by JumpingOffPlace | last post: by
3 posts views Thread by Cuong.Tong | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.