Code: Selecteer alles
<? if (isset($_GET['act'])) $PAGE = $_GET['act']; # You can change the value between the brackets to change the index.php?xxx #
else $PAGE = 'home'; # When no page is being asked for, it will default to home. See below!
switch ($PAGE) {
//1- index
case 'home': # value to call , index.php?xxx=home
include ('home.php'); # path to file
break;
//2-about
case 'about': # value to call , index.php?xxx=about
include ('/about/about.htm'); # path to file
break;
default:
echo "<p align=center>Error 404! the page you request doesn't exist or as been temporarily inaccessible </p>"; # Page request not found
break;
} ?>