#26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
From: just at helping dot com Date: Thu, 10 Sep 2009 10:53:46 +0000 Subject: #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data" References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-142212@lists.php.net to get a copy of this message
ID: 26004
Comment by: just at helping dot com
Reported By: jacknorton101 at hotmail dot com
Status: No Feedback
Bug Type: *General Issues
Operating System: RedHat Linux 9
PHP Version: 4.3.3
New Comment:
IT IS NOT a BUG. GET and post methods will work as normal requests but
if you use the form enctype multipart then you got to handle the request
as multipart. In java I use the oreilly MultipartRequest to parse the
data and it works wonderfully. You migh thave to find a way to get it in
PHP or you can write yourself a multipartrequest class based on
oreilly's one.
Previous Comments:
------------------------------------------------------------------------
[2009-07-01 16:22:26] shaharjourno at hotmail dot com
Hi I had the same bug i found a solution please check your
Post_max_SIZE. there are some problems with some sizes. I managed to
create this problem and then solved
Here is a link with some examples
http://forums.devnetwork.net/viewtopic.php?f=31&t=94754
Hopefully it will help .
------------------------------------------------------------------------
[2009-01-20 14:31:40] paraporquerias at yahoo dot com
My problem is that, in my earlier php instalation, I had
register_globals=on, and now, with PHP5, it comes off by default:
http://cn.php.net/manual/en/language.variables.external.php
My solution was using this line before I need the value of $username
$username = echo $_POST['username'];
I hope it helps...
------------------------------------------------------------------------
[2008-12-15 02:28:26] ray_linn at hotmail dot com
occurs the same issues on apache 2.2.8 + latest php 5.2.8, all of the
solution above is useless.
------------------------------------------------------------------------
[2008-09-16 01:58:06] mike dot dygert at adelphia dot net
I am having this issue, none of the above worked for me... anybody have
other ideas? (IIS 6, PHP 5.2.6)
Thanks
------------------------------------------------------------------------
[2008-03-05 14:56:13] schefer at webdessert dot ch
To correct my above message:
Post the form with method GET does not work, setting the post_max_size
in php.ini higher than the size of the uploaded file did the trick.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/26004
--
Edit this bug report at http://bugs.php.net/?id=26004&edit=1
Thread (29 messages)
- #26004 [Opn->Fbk]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Fbk->NoF]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- Bug #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- Bug #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
- Bug #26004 [Com]: $_POST variables not set when using enctype="multipart/form-data"
| « previous | php.bugs (#142212) | next » |
|---|