#19848 [Com]: Wrong $_REQUEST values

From: Date: Wed, 16 Oct 2002 11:29:23 +0000
Subject: #19848 [Com]: Wrong $_REQUEST values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22563@lists.php.net to get a copy of this message
ID: 19848 Comment by: ferdhie2k@yahoo.com Reported By: capelli@in2p3.fr Status: Critical Bug Type: HTTP related Operating System: *any PHP Version: 4.2.3,4,3.0-dev New Comment: Also got the same cases. <form method="post" action="test.php"> <input type="checkbox" name="server[]" value="ASP"> <input type="checkbox" name="server[]" value="C"> <input type="checkbox" name="server[]" value="COLDFUSION"> <input type="checkbox" name="server[]" value="JAVA"> <input type="checkbox" name="server[]" value="PERL"> <input type="checkbox" name="server[]" value="PHP"> </form> print_r($_POST['server']); it comes out: --------------- Array ( [0] => ASP [1] => C# [2] => FUSION [3] => [4] => [5] => PHP ) Apache/1.3.26, Win98 Previous Comments: ------------------------------------------------------------------------ [2002-10-15 15:21:27] ich@ersiees.com BTW, 17958 is "no feedback". Well, that's pretty untrue ... ------------------------------------------------------------------------ [2002-10-10 17:59:06] sniper@php.net Actually $_REQUEST should contain $_FILES too (according to docs) but it doesn't seem to work, not in HEAD either. And in this case, it propably is pretty hard to get work 'correctly' since the $_FILES array structure is what it is. ------------------------------------------------------------------------ [2002-10-10 10:43:02] capelli@in2p3.fr On Windows, I used a 4.2.1 PHP version and 2.0.39 Apache version. On SunOS, a 4.2.3 PHP version and 1.3.26 Apache version are used. The results are identical The $_POST variable is uncomplete: Array ( [toto] => Array ( [a] => a [b] => b [c] => C:\TEMP\PHPUPLOAD\php23F.tmp ) ) ------------------------------------------------------------------------ [2002-10-10 10:28:20] msopacua@php.net grr, need a new trackball ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ 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/19848 -- Edit this bug report at http://bugs.php.net/?id=19848&edit=1

« previous php.bugs (#22563) next »