Page 1 of 1

All forms acting like multipart/form-data

Posted: Sun Nov 09, 2003 9:10 am
by ruthsimon
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

Posted: Mon Nov 10, 2003 3:32 am
by twigletmac
What do you get if you do:

Code: Select all

echo '<pre>';
print_r($_POST);
echo '</pre>';
Mac