RE: [PHP] Re: Value in URL issue

From: Date: Wed, 16 Jun 2004 20:35:34 +0000
Subject: RE: [PHP] Re: Value in URL issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188434@lists.php.net to get a copy of this message
I only get 'NULL' when I do that. Sort of interesting..... -Mike > -----Original Message----- > From: Matt Grimm [mailto:mgrimm@healthtvchannel.org] > Sent: Wednesday, June 16, 2004 4:10 PM > To: Mike R > Subject: Re: [PHP] Re: Value in URL issue > > > Try this at the top of nav.php (before any other code): > > var_dump($_GET['page']); > > It can generally can give you more interesting information. > > -- > > Matt Grimm > Web Developer > The Health TV Channel, Inc. > (a non - profit organization) > 3820 Lake Otis Parkway > Anchorage, AK 99508 > 907.770.6200 ext. 686 > 907.336.6205 (fax) > E-mail: mgrimm@healthtvchannel.org > <mailto:mgrimm@healthtvchannel.org> > Web: www.healthtvchannel.org > <http://www.healthtvchannel.org> > > > > Mike R wrote: > > > > > > >>-----Original Message----- > >>From: chmok [mailto:mgrimm@healthtvchannel.org] > >>Sent: Wednesday, June 16, 2004 3:50 PM > >>To: php-general@lists.php.net > >>Subject: [PHP] Re: Value in URL issue > >> > >> > >>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). > >> > >> > > > >I did print $_GET['page']; > > > >:) > > > >-Mike > > > > > > > > > > > > > >

« previous php.general (#188434) next »