Re: URL get variable problem

From: Date: Fri, 28 Jun 2002 21:43:25 +0000
Subject: Re: URL get variable problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104431@lists.php.net to get a copy of this message
You can't have "dots" in a variable name, so PHP converts them to a _ ---John Holmes... ----- Original Message ----- From: "Glenn MacGregor" <gtm@almeric.com> To: <php-general@lists.php.net> Sent: Friday, June 28, 2002 2:27 PM Subject: [PHP] URL get variable problem > Hi All, > > I have a php script which inserts into a database all the _GET variables. > > foreach ($_GET as $name => $value) { > // insert into database > } > > This works fine for a url like > http://server/page.php?name1=value1&name2=value2 > > If I use a URL like > http://server/page.php?test1.test.com=online All the > dots ('.') in the name portion and changed to '_'. This does not happen if > there are dots in the value portion of the url. Is this a apache thing or a > php thing? Can I do something to fix it? > > Thanks > > Glenn > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#104431) next »