View Single Post
Old 06-16-2006, 03:07 PM   #4 (permalink)
darkninja
 
Junior Techie

Join Date: Oct 2005

Posts: 75

darkninja

Default

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.

Quote:
Top 10 of E3
Hope that helps
__________________
<a href="http://www.flashyflashy.net" target="_blank">flashyflashy.net</a>
darkninja is offline