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