note 36770 added to function.parse-url
| From: | sjt at 5jt dot com | Date: | Tue, 21 Oct 2003 23:45:03 +0000 |
| Subject: | note 36770 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59086@lists.php.net to get a copy of this message | ||
It gets better...
parse_str($_SERVER['QUERY_STRING']);
though you might flinch at random names from the URI query string showing up as variables. Safer to
secure them in a hash table, eg
parse_str($_SERVER['QUERY_STRING'],$vars);
$lang = $vars['lang'];
echo "Your language is $lang";
sjt
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36770
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36770&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36770&report=yes
Search -- http://master.php.net/manage/user-notes.php