Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with a form enctype="multipart/form-data"

Status
Not open for further replies.

justinpl

Programmer
Nov 20, 2003
19
0
0
US
I am trying to upload an image file from the user and have to use the enctype="multipart/form-data" in the form. The problem is I have a variable that is generated from a checkbox. So if the user checks multiple options for the checkbox the value should read value,value,value,etc... For some reason with enctype="multipart/form-data" it only recognizes the first value and anything from the "," and after is striped out. When I take away the enctype="multipart/form-data" it displays the value,value,value,etc...

Any suggestions...

Thanks,

Justin
 
Thats the problem with uploading files and using form fields on the same page.

The way round it is to loop through the form and create a dictionary class, then extract the values from there.

Notice how sites like hotmail wont use file upload fields and form fields on the same page?

If you must do it, search for asp file upload on deja.

eg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top