Re: Newbie Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.");}
> >>?>
> >>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux