i am using the switch command. i am trying to make a next page.
index.php //
<?php
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;
}
}
?>
the link is index.php?id=portfolio&cat=more but more.php display on portfolio.php under everything...i need it to be like a whole different page.
can someone help me out please? thanks