$error='error.html'; $header='header.html'; $footer='footer.html'; $index='index'; $page=$_GET['page']; if (file_exists($page)) { include $header; include $page; include $footer; } else { include $header; include $index; include $footer; } ?>