You could use the array fuction to insert the page title depending on the value of $page:
PHP Code:
<?php
$pagetitle_array = array(
'home' => 'page title for home',
'about' => 'page title for about us',
'contact' => 'page title for contact us'
);
// Check $page exists
$pagetitle = (empty($page)) ? 'Default title' : $pagetitle_array[$page];
?>
<html>
<head>
<title><?=$pagetitle?></title>
</head>
<body>
Header / graphics here
<?php
if (!isset($page))
{
include ("home.php");
}else{
include ("$page.php");
}
Footer
?>
</body>
</head>
</html>
Bookmarks