The code I am using is similar to this:
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');
?>
For example: Home > Products > Shoes > Nike etc...
How can I edit my script so that I can also change the menu on each page?
Thanks in advance.