php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22807 enctype="multipart/form-data" doesn't return data when posted via form
Submitted: 2003-03-20 15:56 UTC Modified: 2003-03-20 17:32 UTC
From: eternal at clanomni dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.3.1 OS: Linux 2.4.19
Private report: No CVE-ID: None
 [2003-03-20 15:56 UTC] eternal at clanomni dot net
When we have a form that uses enctype='multipart/form-data' it doesn't return data in the $HTTP_POST_VARS so our website isn't allowing users to post forum messages, upload files, sign up for an id etc.  

This worked in the previous version and just stopped working when our web host upgraded php on the server.

I have searched for this bug already and all the solutions say to turn on file uploads or register globals which are already set on our server.  Also some say to get the cvs but at that time the cvs was for a version older than the current version i have here.

Here is a link with our phpinfo:  http://www.clanomni.net/phpinfo.php

Test URL to see Data isn't getting posted:  http://www.clanomni.net/test.php

Code for test.php:
$HTTP_POST_VARS = <? print_r($HTTP_POST_VARS); ?> 
<BR>
<HR>
With ENCType='multipart/form-data'<BR>
<form method=post enctype='multipart/form-data'> <input type='text' value='<? print $foo ?>' name='foo'> <input type='submit'> </form> 
<HR>
Without ENC Type<BR>
<form method=post> <input type='text' value='<? print $foo ?>' name='foo'> <input type='submit'> </form> 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-20 17:32 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jun 25 19:05:44 2022 UTC