[...]
switch($_GET['id']) {
case 'home':
include 'home.php';
break;
case 'about':
include 'about.php';
break;
case 'portfolio':
include 'portfolio.php';
break;
case 'products':
include 'products.php';
break;
case 'contact':
include 'contact.php';
break;
default:
require 'home.php';
}
if($_GET['cat']) {
switch($_GET['cat']) {
case 'expertise':
include 'expertise.php';
break;
case 'more';
include 'more.php';
break;
}
}
[...]
that is my index.php.
when I'm at index.php?id=portfolio, i want to be able to move to another page (not just include more content on the same page) so i need to go to index.php?id=portfolio&cat=more
(which is the second page of the portfolio page).
But it isnt working with the code I have now..what should I add/take out?
Thanks