I am trying to revamp my webpage so that the menu is loaded from another file, and therefore I do not have to rewrite the menu for every html file in my website.
Basically I tried copy and pasting my HTML menu out of the html file and into a new html file. I then used php and said:
<?php
include 'menu.html';
?>
However, it did not work properly.
I then tried moving everything in menu.html into menu.php, and I just made menu.php a series of print statements, so basically it would have the same effect as just displaying normal html code, and then change the include menu.html to be an include of menu.php, however, that did not work either.
The code can in its entirety can be viewed here:
http://students.cs.byu.edu/~dprucs/index.html
http://students.cs.byu.edu/~dprucs/menu.html
http://students.cs.byu.edu/~dprucs/menu.php
What do I seem to be doing wrong?
[edit]
menu.html and menu.php both work correctly when used by themselves, however they do not work correctly when included in index.html
[/edit]