<?php $page="main"; ?>
<div id="page" align="center">
<div id="header">
<img src="images/header.jpg" border="0" usemap="#Map" />
<map name="Map">
<area shape="rect" coords="0,0,800,93" href="index.php?page=main">
<area shape="rect" coords="57,113,203,161" href="index.php?page=gallery">
<area shape="rect" coords="214,112,419,155" href="index.php?page=reel">
<area shape="rect" coords="428,116,580,160" href="index.php?page=resume">
<area shape="rect" coords="593,112,746,152" href="index.php?page=contact">
</map>
</div>
<div id="middle"><br /><br />
<div id="body">
<?php @ require_once ("$page.htm"); ?>
</div>
</div>
<div id="footer" align="left">
</div>
</div>
This is the code I'm using to attempt to make the links in the header open a different page with include. At first the code would just stop rendering right before the require tag, but after I added in the first php code to define the variable $page as main at first, it would at least render the entire page correctly. Now, however none of the links work. They change the address in the address bar to index.php?page=gallery, but the div never changes to the gallery page. Any ideas on what I might be doing wrong?