navigation menu in xhtml and php same

Associate
Joined
7 Nov 2004
Posts
1,755
Location
Southampton/Oxford
Hi there guys, am stumped in how to make my navigation menu appear in all my pages, so I just change one file instead of going through all the pages to update the links and such? I'm using PHP and xhtml fyi

Thanks all
 
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="index.html" id="current">Home &larr;</a></li>
<li><a class="plain" href="signup.html"> Sign up here &rarr;</a></li>
</ul>
</div>

This is what I need on all the pages, now I've read I need to set all the .html pages to .php, then include


<?php include("menu.php"); ?>

Which is reading from my require.php, so afterwards, my page looks like-

<div id="navcontainer">
<ul id="navlist">
<?php include("menu.php"); ?>

</div>

but the navigation bar disappears :confused:
 
Back
Top Bottom