You are here: Re: Include Content pages in Master page « PHP Language « IT news, forums, messages
Re: Include Content pages in Master page

Posted by jussist@gmail.com on 01/12/07 09:12

> 2) For sake of ease, scalability, and security you may want to build a
> querystring like ?id=1, instead of ?page1. Then you can read the page id
> with $_GET['id'].
> 3) Using this method of including, you should perform a check on file
> existence.

Well in this case a page is not included directly according to the qs,
but the qs rather defines what page is included. If I understand
correctly, there could be:

if( $qs == "Contact" || $qs == "ContactInfo" ) {
include('NoneOfYourBusiness.htm');
}

So the value of qs might have nothing to do with the included file's
name. At least that is what I understood.

 

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

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