URL get variable problem
| From: | Glenn MacGregor | Date: | Fri, 28 Jun 2002 18:27:24 +0000 |
| Subject: | URL get variable problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104405@lists.php.net to get a copy of this message | ||
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