Not a Member Yet,
Click here to Register
How do you like the new design?






ID: 519
Viewed: 5990
Added: Nov 04, 2003
Version: 1.0
Snippet uploaded by: Martyn Coupland
Written By: DA Master
Demo: Sorry, no demo



User Rated at: 4 Stars4 Stars4 Stars4 Stars
Rate This:

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.


Replying to a Comment...


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.

© 2002 - 2017 snippetlibrary.com All Rights Reserved. Conditions