

ID: 519
Viewed: 6729
Added: Nov 04, 2003
Version: 1.0



Snippet uploaded by: Martyn Coupland
Written By: DA Master
Demo: Sorry, no demo



Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty


Learn how to have index.php?id=1 url's in this short but simple snippet.
<!---Head--->
<?php
switch($id) // Alter this to the variable section. E.G. $cat here would be index.php?cat=1
{
case "1": // Change this to relect the 1 section of the URL
include('news.php');
break;
case "2":
include('about.php');
break;
case "3":
include('biography.php');
break;
default: // This includes the main page if just start.php is entered.
include('start.php');
}
?>
<!---Body--->
none
No Comments to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.