Re: Newbie Help

From: Date: Mon, 02 May 2005 04:36:53 +0000
Subject: Re: Newbie Help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-214315@lists.php.net to get a copy of this message
Also, after I looked at more of your code you will need to specify the php extension in only one of two places. Currently you are specifying it in 1) the code below and in 2) nav.php and in nav.php you don't have it specified for the "main" but you do for the other links. That means that the code supplies the .php extension for main (which it needs to because it is simply "main" and not "main.php") but the other pages are specified as "name.ext" with the .php. Then when that page name gets to the script, the script is adding .php onto the variable -- resulting in main.php, links/index.php.php, email/email.php.php and so forth. Do it one place or the other -- but do it consistently. Looks like you're close to getting it to work and I'm close to going to bed. Mark Cain > >>The code that I'm trying to do this is the following: > >><?php > >> if(isset($_GET ['page'])) > >> {include($_GET ['page'].".php");} > >> else > >> {echo("Page Not Set.");} > >>?> > >> > >>My site is: http://bonhamlinux.org > >>My email is: freeswimfreak@yahoo.com > >> > >>Thanks for all the help. > >>Thomas > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#214315) next »