Bug #14099 Updated: POST/GET - if there is a dot in the name it's changes to "_"

From: Date: Mon, 19 Nov 2001 23:10:06 +0000
Subject: Bug #14099 Updated: POST/GET - if there is a dot in the name it's changes to "_"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70985@lists.php.net to get a copy of this message
ID: 14099 Updated by: sniper Reported By: galg@sphera.com Status: Bogus Bug Type: HTTP related Operating System: Linux, Red-Hat 6.2 PHP Version: 4.0.6 New Comment: Maybe in other languages but not in PHP. As Markus already said, '.' is reserved character in PHP. Even if you encode it it will be seen as . in server side. Previous Comments: ------------------------------------------------------------------------ [2001-11-19 03:49:16] galg@sphera.com even if you use &#046; it's been replaced to "_". in many other languages this is possible. <form action="" method="post" name="aaa"> <input type="text" size="12" name="12.13&#046;14" value="66.66"> <input type="submit" value="send me"> </form> ------------------------------------------------------------------------ [2001-11-18 12:52:38] mfischer@php.net That's intended behaviour. You can't have dots in variable names, the dot is already used for string concatenation. Bogus. ------------------------------------------------------------------------ [2001-11-18 12:31:16] galg@sphera.com When i submit a form where is a dot in the name it's changes to "_". for example: <form action="<?=$PHP_SELF;?>" method="post" name="aaa"> <input type="text" size="12" name="12.13.14" value="66.66"> <input type="submit" value="send me"> </form> when runing in PHP: foreach ($HTTP_POST_VARS as $key=>$val){ echo "$key = $val<BR>"; } the output will be : 127_0_0_1 = 66.55 ------------------------------------------------------------------------ [2001-11-18 12:29:01] galg@sphera.com When i submit a form where is a dot in the name it's changes to "_". for example: &lt;form action="&lt;=$PHP_SELF&gt;" method="post" name="aaa"&gt; &lt;input type="text" size="12" name="127.0.0.1" value="66.55"&gt; &lt;input type="submit" value="send me"&gt; &lt;/form&gt; when runing in PHP: foreach ($HTTP_POST_VARS as $key=>$val){ echo "$key = $val<BR>"; } the output will be : 127_0_0_1 = 66.55 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14099&edit=1

« previous php.dev (#70985) next »