Re: Newbie Help

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

 



Hello,
Thank for the information.

If that is not a good idea then how would you do it.

Thomas
--- Richard Collyer <richard@xxxxxxxxxxxxxx> wrote:
> Hello,
> 
> <?php
>                if(isset($_GET['page']))
>                    {include($_GET['page'] .
> ".php");}
>               	else
>                    {echo("Page Not Set.");}
> ?>
> 
> Should work if you use ?page=index
> 
> Might I suggest that what you are doing is a bad
> idea. Not only will it 
> look bad becuase of people seeing stuff like
> ?page=/review/review23.php 
> in the URL. Also its a security risk allowing people
> to call php scripts 
> from the URL.
> 
> Cheers
> Richard
> 
> Thomas Bonham wrote:
> > Hello All,
> > 
> > First of I'm new to this a hop I'm doing this
> right.
> > 
> > If some one can help me with my web site page. I'm
> trying to make it
> > call a page and I get a error line 42. Error:
> >
> http://bonhamlinux.org/idex.php?page=links/index.php
> > 
> > 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@xxxxxxxxx
> > 
> > Thanks for all the help.
> > Thomas
> > 
> 
> 

Thomas Bonham
Linux Rocks
http://www.bonhamlinux.org
Cell 602 402 9786
E-mail freeswimfreak@xxxxxxxxx
YIM freeswimfreak

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
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