This is a discussion on multipart/form-data within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Have a form that I want users to be able to both upload a file and fill out some regular ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Have a form that I want users to be able to both upload a file and fill out
some regular text input boxes then submit all together. I have the enctype set to multipart/form-data in my form tag, but when I hit submit, my php page does not have the value for the variables. If I remove the enctype attribute and submit, my text input data is now available as a php variable - but I'm sure I won't be able to upload the files anymore. Anyone have any ideas why this is happening? Thanks, Scott |
|
|||
|
Found the answer. file_upload was set to off in php.ini
"Scot" <blank@blank.blank.com> wrote in message news:bra61q$mr8@library1.airnews.net... > Have a form that I want users to be able to both upload a file and fill out > some regular text input boxes then submit all together. > > I have the enctype set to multipart/form-data in my form tag, but when I hit > submit, my php page does not have the value for the variables. If I remove > the enctype attribute and submit, my text input data is now available as a > php variable - but I'm sure I won't be able to upload the files anymore. > > Anyone have any ideas why this is happening? > > Thanks, > > Scott > > |