Bug #14758 Updated: $HTTP_GET_VARS Improper NAME scrambling

From: Date: Sun, 30 Dec 2001 03:54:40 +0000
Subject: Bug #14758 Updated: $HTTP_GET_VARS Improper NAME scrambling
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75325@lists.php.net to get a copy of this message
ID: 14758 Updated by: mfischer Reported By: chris@chrisderose.com Old Status: Open Status: Bogus Bug Type: *General Issues Operating System: Linux 2.4 (Mandrake 6.1) PHP Version: 4.0.6 New Comment: Since spaces aren't allowed in variable names (obviously) they're converted to underscores. Bo bug -> bogus. Previous Comments: ------------------------------------------------------------------------ [2001-12-29 22:34:54] chris@chrisderose.com <? if (!sizeof($HTTP_GET_VARS) ) { ?> <FORM ACTION="<?=$PHP_SELF?>" METHOD="GET"> <INPUT TYPE="TEXT" NAME="Test Input" VALUE="doh!"> <INPUT TYPE="SUBMIT"> </FORM> <?} else { ?> This won't work (it should):<?=$HTTP_GET_VARS['Test Input']?><BR> This will:<?=$HTTP_GET_VARS['Test_Input']?><BR> <? } ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14758&edit=1

« previous php.dev (#75325) next »