#22807 [Opn->Csd]: enctype="multipart/form-data" doesn't return data when posted via form
| From: | sniper@php.net | Date: | Thu, 20 Mar 2003 23:32:37 +0000 |
| Subject: | #22807 [Opn->Csd]: enctype="multipart/form-data" doesn't return data when posted via form | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36064@lists.php.net to get a copy of this message | ||
ID: 22807
Updated by: sniper@php.net
Reported By: eternal at clanomni dot net
-Status: Open
+Status: Closed
Bug Type: *Web Server problem
Operating System: Linux 2.4.19
PHP Version: 4.3.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-03-20 15:56:18] 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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22807&edit=1