Hoe kan ik hier verschillend "content" of pagina includen" ?? navigatie blijft dus op elke pagina behouden
<?php
ini_set ('display_errors', 1);
error_reporting (E_ALL);
$config = array (
'title' => 'Jan Koehoorn | Examples | CSS | Menu'
);
$active = (isset ($_GET['pag']))?($_GET['pag']):('01');
$allowed = array ('01', '02', '03', '04', '05');
if (!in_array ($active, $allowed)) $active = '01';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jan Koehoorn | <?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" media="screen" href="../../reset.css" />
<style type="text/css" media="all">
ul#nav {width: 200px; overflow: hidden; border: 1px solid #999;}
ul#nav li {overflow: hidden; display: inline; float: left; width: 200px; background: url(css_menu_bg2.gif) left top repeat-x;}
ul#nav li strong {color: #000; display: block; padding: 3px; background: url(css_menu_bg3.gif) left top repeat-x; cursor: default;}
ul#nav li a {text-decoration: none; color: #000; display: block; padding: 3px;}
ul#nav li a:link,
ul#nav li a:visited {background: url(css_menu_bg1.gif) left top repeat-x;}
ul#nav li a:hover,
ul#nav li a:active {background-image: none;}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $config['title']; ?></h1>
<div id="summary">
<p>Dit is de manier waarop ik CSS menu's maak. Het active item wordt met <strong> gestyled, zodat users met voorleesbrowsers kunnen
horen wat de actieve pagina is. Alle plaatjes worden van tevoren ingeladen en niet pas op :hover.</p>
</div>
<ul id="nav">
<?php
foreach ($allowed as $pag) {
echo PHP_EOL;
if ($pag == $active) {
echo '<li><strong>item ' . $pag . '</strong></li>';
}
else {
echo '<li><a href="?pag=' . $pag . '" title="item ' . $pag . '">item ' . $pag . '</a></li>';
}
}
?>
</ul>
<h3>Include hier pagina <?php echo $active; ?></h3>
</div>
</body>
</html> \code komt van
http://www.jankoehoorn.nl/examples/css/menu/?pag=02