$_GET['page']
$page = $_GET['page'];
if ($page==accueil) echo 'page d\'accueil';
elseif ($page==xxx) echo 'page xxx';
<!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" xml:lang="fr" lang="fr">
<head>
<title>titre</title>
<link type="text/css" href="stylesheet.css" rel="stylesheet"/>
</head>
<body>
<div id="page">
<div id="menu">
<ul id="navlist">
<li><a id="<? if(($_GET['page'])=='accueil'){echo "current";} ?>" href="index.php?page=accueil" title="Nos valeurs">Nos valeurs</a> |</li>
<li><a id="<? if(($_GET['page'])=='solutions'){echo "current";} ?>" href="index.php?page=solutions" title="Nos solutions">Nos solutions</a> |</li>
<li><a id="<? if(($_GET['page'])=='offres'){echo "current";} ?>" href="index.php?page=offres" title="Nos offres">Nos offres</a></li>
</ul>
</div>
<div id="content">
<?php
// On définit le tableau contenant les pages autorisées
// ----------------------------------------------------
$pageOK = array( /* MENU */
'solutions' =>'pages/solutions.php',
'offres' =>'pages/offres.php',
'accueil' => 'pages/accueil.php');
// On teste que le paramètre d'url existe et qu'il est bien autorisé
// -----------------------------------------------------------------
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) {
include($pageOK[$_GET['page']]); // Nous appelons le contenu central de la page
} else {
include('pages/accueil.php');
} // Page par défaut quant elle n'existe pas dans le tablea
?>
</div>
<div id="footer"></div>
</div>
</body>
</html>