Bug #15827: posts with enctype=multipart/form-data do not register post vars.
| From: | scott at datalink dot net dot au | Date: | Sat, 02 Mar 2002 05:54:04 +0000 |
| Subject: | Bug #15827: posts with enctype=multipart/form-data do not register post vars. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1454@lists.php.net to get a copy of this message | ||
From: scott@datalink.net.au
Operating system: Redhat 7.0
PHP version: 4.1.2
PHP Bug Type: Variables related
Bug description: posts with enctype=multipart/form-data do not register post vars.
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 bug report at http://bugs.php.net/?id=15827&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15827&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15827&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15827&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15827&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15827&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15827&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15827&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15827&r=submittedtwice