#19848 [NoF->Fbk]: Wrong $_REQUEST values
| From: | msopacua@php.net | Date: | Thu, 10 Oct 2002 15:28:20 +0000 |
| Subject: | #19848 [NoF->Fbk]: Wrong $_REQUEST values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22061@lists.php.net to get a copy of this message | ||
ID: 19848
Updated by: msopacua@php.net
Reported By: capelli@in2p3.fr
-Status: No Feedback
+Status: Feedback
Bug Type: *General Issues
Operating System: SunOS 5.8 + Windows 2000 Pro
PHP Version: 4.2.3
New Comment:
grr, need a new trackball
Previous Comments:
------------------------------------------------------------------------
[2002-10-10 10:27:29] msopacua@php.net
I think a dupe of
http://bugs.php.net/17958
as $_REQUEST is a combination of $_GET, $_POST, $_COOKIE.
Are you using Apache 2 and can you verify what's posted in there?
------------------------------------------------------------------------
[2002-10-10 10:27:28] msopacua@php.net
I think a dupe of
http://bugs.php.net/17958
as $_REQUEST is a combination of $_GET, $_POST, $_COOKIE.
Are you using Apache 2 and can you verify what's posted in there?
------------------------------------------------------------------------
[2002-10-10 10:10:42] capelli@in2p3.fr
In this particular form case:
<FORM METHOD=POST ACTION="test2.php" enctype="multipart/form-data">
<INPUT TYPE="text" NAME="toto[a]"><BR>
<INPUT TYPE="text" NAME="toto[b]"><BR>
<INPUT TYPE="file" NAME="toto[c]"><BR>
<INPUT TYPE="submit">
</FORM>
we expect in $_REQUEST:
Array
(
[toto] => Array
(
[a] => a
[b] => b
[c] => Array
(
[name] => apple.jpg
[type] => image/pjpeg
[tmp_name] => C:\TEMP\PHPUPLOAD\php233.tmp
[error] => 0
[size] => 24777
)
)
)
and unfortunately we get:
Array
(
[toto] => Array
(
[name] => Array
(
[c] => apple.jpg
)
[type] => Array
(
[c] => image/pjpeg
)
[tmp_name] => Array
(
[c] => C:\TEMP\PHPUPLOAD\php234.tmp
)
[error] => Array
(
[c] => 0
)
[size] => Array
(
[c] => 24777
)
)
)
.......
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19848&edit=1