Quote:
|
The most common way this is done, is to with a switch statement.
|
I think there may be an easier way, otherwise, if you have a billion pages, its a bit hard to keep adding switch statements
Code:
<?php
if ($_REQUEST[pageid]) {
require "$_REQUEST[pageid].php";
}
?>
That way, every time you need to add a new page you dont need to add another switch statement.
You link to it the same way.
Hope that helps