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" <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php