Hi All,
I am trying to use a single menu within index.php. As the menu item is clicked I want to include different page content, so in an ideal world the page only has to load the header and footer once, reducing lag in browsing.
The code below links to the correct files but doesnt draw the page in, instead changes the entire page and I loose the header and footer.
I have searched the forums and think that I need to impliment a case statement but am a little stumped at where to start,
Any help would be much appreciated.
Many thanks
werendle
[/text]
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4">
<html>
<head>
</head>
<body>
<font face="calibri">
<?php
include("header.php");
?>
<ul class="menu">
<li><a href="home.php">Home</a></li>
<li><a href="about.php">About</a></li>
<li><a href="cycle.php">Cycle</a></li>
<li><a href="blog.php">Blog</a></li>
</ul>
<?php
include("footer.php");
?>
</font>
</body>
</html>