ID: 15827
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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