$pages = array('content_start', 'images', 'long_text', 'about'); $names = array('Start page', 'Images', 'Long text', 'About'); $descs = array("This page intentionally left blank", "Some images I've made/modified with Photoshop", "A long text. I put it here just to see how long pages behaved.", "Some information about this page and who I am."); $active = ( in_array($_GET['active'], $pages) ? $_GET['active'] : $pages[0] ); $menu = ""; for($i = 0; $i < count($pages); $i++) { $menu .= "
"; if ($pages[$i] != $active) { $menu .= "".$names[$i].""; } else { $menu .= "".$names[$i].""; } $menu .= "
"; } ?>