ok, here is my current code:
index.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';
}
[...]
portfolio.php
<?php
/* portfolio.php */
include ("head.php");
include ("portfolio_logo.php");
include ("nav.php");
include ("ptitle.php");
include ("date.php");
include ("clogin.php");
include ("ptbody.php");
include ("footlinks.php");
include ("foot.php");
?>
ptbody.php
[...]
<? if (!isset($_GET['cat']) || $_GET['cat'] != 'more') {
echo '<a href="index.php?id=portfolio&cat=more&sid=' . $_SESSION['sid'] . '" class=\"bodylinks\">Next Page</a>';
}
?>
[...]
when i click on the link (cat=more) it dissapears...
i need it to go to new page with different content on it.