Re: Value in URL issue
| From: | chmok | Date: | Wed, 16 Jun 2004 19:49:44 +0000 |
| Subject: | Re: Value in URL issue | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188430@lists.php.net to get a copy of this message | ||
spycobalt@spyproductions.com (Mike R) wrote in
news:GKEFLEHIPEGIFEECKBNEOEDGGKAB.spycobalt@spyproductions.com:
>
> I have an issue where I have a value in a link like this:
>
> http://www.something.com/templates/nav.php?page=about
>
> But when the link is clicked on, the value of page is empty. Is this a
> globals issue of some sort?
>
> Thanks,
>
> -Mike
How are you testing for the variable on nav.php? It will be in $_GET
['page'] with more recent versions of PHP. If you want to use the variable
directly, like $page, you need to extract it first - extract($_GET).
-Matt