This code will help to change the page when the page url is different and contains the variables to be used as GET as:
index.php?page=something
<?php
switch ($_GET['page']) {
case 'first':
$change = "first";
include('first.php');
break;
case 'second':
$change = "second";
include('second.php');
break;
default: //Set the default page if no variable is passed
$change = "main";
include('main.php');
break;
}
?>
Set as favorite
Bookmark
Email This
Hits: 167
Comments (0)










