Re: Customise Index page using PHP????
| From: | Martin Clifford | Date: | Thu, 11 Jul 2002 14:43:21 +0000 |
| Subject: | Re: Customise Index page using PHP???? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107144@lists.php.net to get a copy of this message | ||
The easiest way to accomplish that is by using switches. Here is an example:
switch($pageid) {
default:
include("default_page.inc");
break;
case "18":
include("page_18.inc");
break;
}
With that in your index.php page, it will look for the variable $pageid, and depending on what it is
set to, display the appropriate information. In this instance, it will display the default index
page by default (if $pageid is empty), or page_18.inc if $pageid = 18.
Hope that helps :o)
>>> "Craig" <craig@sitedesign.net> 07/11/02 10:42AM >>>
I want to acheive something like this
http://www.claviga.com/index.php?pageid=18
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php