Versuchs mal so.
mfg
djheke
PHP-Code:
<?php
$uri = $_SERVER['REQUEST_URI'];
$navi = array(
"/" => "Startseite" ,
"/kontakt.php" => "Kontakt" ,
"/impressum.php" => "Impressum" ,
);
print '<ul id="navi">'."\n";
foreach ( $navi as $href => $text ) {
if ( $uri == $href ) {
print ' <li><strong>'.$text.'</strong>'.$li."\n";
} else {
print ' <li><a href="'. $href .'">'.$text.'</a></li>'."\n";
}
}
print '</ul>'."\n";
?>
djheke
Kommentar