You should avoid any frames, JS (including AJAX) or others client-side technologies.
You can do this like following:
PHP Code:
<?php
$page = isset($_GET['page']) ? $_GET['page'] : false; //variable from address (...index.php?page=download
switch($page){
case 'download':
$file = 'download.html';
break;
case 'contact':
$file = 'contact.html';
break;
default: //mainpage
$file = 'main.html';
break;
}
$contents = file_get_contents($file);
?><!DOCTYPE ...>
<html ...>
<head>
....
</head>
<body>
...
<div id="content">
<?php echo $contents; ?>
</div>
...
</body>
</html>
Of course there is many others ways to do that, but it's only example.
If You want to have "nice URLs" read about mod_rewrite.
Bookmarks