Bug #15827 Updated: posts with enctype=multipart/form-data do not register post vars.
| From: | derick@php.net | Date: | Sat, 02 Mar 2002 11:07:51 +0000 |
| Subject: | Bug #15827 Updated: posts with enctype=multipart/form-data do not register post vars. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1461@lists.php.net to get a copy of this message | ||
ID: 15827
Updated by: derick@php.net
Reported By: scott@datalink.net.au
-Status: Closed
+Status: Bogus
Bug Type: Variables related
Operating System: Redhat 7.0
PHP Version: 4.1.2
New Comment:
Making this bogus (user error)
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 01:04:34] scott@datalink.net.au
My mistake - after my upgrade (due to the security risk) I didn't
re-set the ini file to allow file uploads again. I guess this
directive is there to prevent unauthorised multipart submissions.
For others experiencing this problem, check your ini file and ensure
the following line exists:
file_uploads = On
------------------------------------------------------------------------
[2002-03-02 00:54:03] scott@datalink.net.au
Forms with an enctype of 'multitype/form-data' do not register the POST
variables.
Here's how to reproduce:
----- Short Script Follows -----
<?
print_r($HTTP_POST_VARS);
?>
<form method=post enctype='multipart/form-data'>
<input type='text' value='<? print $foo ?>'
name='foo'>
<input type='submit'>
</form>
----- End Script -----
Run the script above. It is simple enough - it has a form that
submits to itself, and then displays the HTTP_POST_VARS variable.
When I remove the enctype='multipart/form-data' attribute from the form
tag, the script works fine (i.e. the variable 'foo' appears). The
enctype directive appears to surpress the variables.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15827&edit=1