I have an html file called index.html
where I want to add external php file to run it as my "header". I cut the code which contains logo and navigation menu and added it to a file named header.php
.
I've used this code: <?php include 'header.php';?>
after my <body id="page1">
div but what loads is the rest of the pages without the navigation menu that is on header.php
. I've also tried using ajax as someone else mentioned in another post but this doesn't work too.