You are here: Re: [PHP] Newbie Help « PHP « IT news, forums, messages
Re: [PHP] Newbie Help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация