PHP Code:
<?php
include("header.php");
if($_GET['id'] == true)
{
if(file_exists($_GET['id'] . ".php")
{
include($_GET['id'] . ".php");
}else{
include("noid.php");
}
}else{
include("noid.php");
}
include("footer.php");
?>
quick and dirty but it should give you alittle help on what you want to do