Headers and Footers (HTML)

technoman2

Fully Optimized
Messages
3,382
Could someone please help me, i am looking for a simple code that can place header.html at the top of the page and footer.html at the bottom of that page !!

can any please help?

Th
 
im not exactly sure at what your saying but this is what i can tell you

PHP includes

Code:
<?php include('header.html') ?>

rest of your code stuff

<?php include('footer.html') ?>
 
that is what i want, put not in PHP, let me just try it ....

...
... 5 mins l8a

nar didn't work, that bit of code i need is taking over my life ... lol, any thanks for the help
 
You could simply just use frames...
like this:
--------------------------
<frameset rows="20, *, 20">
<frame src="header.html" name="header">
<frame src="mainpage.html" name="mainpage">
<frame src="footer.html" name="footer">
</frameset>
--------------------------
 
No, simply make your HTML, put in the PHP includes, and save it with a.php extention (yes even though it has html)

There is no need for frames - they are messy and don't work in all browsers.

Or next time you see me on MSN messenger then get in touch.
 
as netlight says, all you need to do whether it be adding html or js extensions is use the php include function as syntaxed above. put it in properly and, as he said, save as .php and it will work.
 
Back
Top Bottom