code:
<?php
$page = $_GET["page"];
?>
<html>
<?php
switch($page){
case "contact":
...
break;
default:
...
break;
}
?>
</html>
so ?page=contact will display the contact page, and if nothing is specified or any thing with doesn't exist is specified it shows the default page.