All forms acting like multipart/form-data
Posted: Sun Nov 09, 2003 9:10 am
I added a form to my site with enctype="multipart/form-data" in order to use the php copy function to upload files. That works fine.
Here's the weird part. Now all my files are acting like they're uploading objects. Even if I do a super simple 'post' form with no explicit enctype, and I reveal the post variables on the results page with 'foreach ($_POST as $key -> $value), I get:
$key:Object -> $value:
when I'm expecting:
$key: name -> $value: charlie
What happened?
Ruth
Here's the weird part. Now all my files are acting like they're uploading objects. Even if I do a super simple 'post' form with no explicit enctype, and I reveal the post variables on the results page with 'foreach ($_POST as $key -> $value), I get:
$key:Object -> $value:
when I'm expecting:
$key: name -> $value: charlie
What happened?
Ruth