if ($page == logout){include ('logout.php');} $pages = array( 'register' => 'regform.php', 'verify' => 'verify.php' ); if (array_key_exists($page, $pages)) include($pages[$page]);