I'm trying to use the following address navigation:
http://mydomain.com/index.php?cat=1&subcat=2
I can get the first part (before the &) to work, but it's the part after that I don't know the code for.
Can anyone help?
I'm using the following code already:
CODE
<?php
switch ($_GET['cat']) {
case "1": $inc = './page1.php';
break;
default: $inc = './home.php';
break;
}
include ($inc);
?>
switch ($_GET['cat']) {
case "1": $inc = './page1.php';
break;
default: $inc = './home.php';
break;
}
include ($inc);
?>
Thanks.