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
All forms acting like multipart/form-data
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
What do you get if you do:
Mac
Code: Select all
echo '<pre>';
print_r($_POST);
echo '</pre>';