This is the code I have...
Code: Select all
<?php
$cmd = $_GET['cmd'];
if ($cmd=="") { $cmd = "page1.php"; }
@include('header.php');
switch($cmd)
{
case "page1":
@include('page1.php');
break;
case "page2":
@include('page2.php');
break;
case "page3":
@include('page3.php');
break;
}
@include('footer.php');
?>Code: Select all
if ($cmd=="") { $cmd = "page1.php"; }Thanks alot.
Tom.