Posted by Mark Cain on 05/02/05 07:26
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.");}
> >>?>
> >>
Navigation:
[Reply to this message]
|