Re: Missing posted variables in target script when multipart/form-data is set
| From: | Jason Wong | Date: | Fri, 07 Jun 2002 04:50:47 +0000 |
| Subject: | Re: Missing posted variables in target script when multipart/form-data is set | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101086@lists.php.net to get a copy of this message | ||
On Friday 07 June 2002 12:32, Ed Greenberg wrote:
> I have a small test script which fails when enctype="multipart/form-data"
> is set.
>
> <form action="action.php" method="post"
> enctype="multipart/form-data">
> Your name: <input type="text" name="name">
> You age: <input type="text" name="age">
> You file: <input type="file" name="myfile">
> <input type="submit">
>
> When the above is submitted to action.php, $_POST and $HTTP_POST_VARS are
> both empty. If I remove the enctype="multipart/form-data" portion of the
> form tag, the arrays are set correctly, and in fact, the global_variables
> are created since register_globals is on.
>
> Platform is RedHat Linux 7.3 (Valhalla) with PHP 4.1.2 and Apache 1.3.23 as
> installed from RedHat's Valhalla RPMS.
Have you enabled file uploads in php.ini?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
A Smith & Wesson beats four aces.
*/