Re: Newbie Help

From: Date: Mon, 02 May 2005 04:26:11 +0000
Subject: Re: Newbie Help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-214314@lists.php.net to get a copy of this message
first remove the space between GET and [ I think this keeps your script from find the variable "page" secondly the variable "page" already has the php extension being passed to it via the GET statement make the include like: {include($_GET['page']);} try it and let us know. 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.");} > >>?> > >>

« previous php.general (#214314) next »