Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-22-2004, 12:34 PM   #1
Fully Optimized
 
technoman's Avatar
 
Join Date: Dec 2004
Posts: 3,382
Default Headers and Footers (HTML)

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
__________________

technoman is offline   Reply With Quote
Old 12-22-2004, 07:20 PM   #2
In Runtime
 
Windwaker222's Avatar
 
Join Date: Nov 2004
Posts: 351
Default

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') ?>
__________________

__________________
AMD Phenom 9600 / 4GB OCZ Gold / nVidia 8800GT / ASUS Crosshair 4xPCI-E
Windwaker222 is offline   Reply With Quote
Old 01-25-2005, 04:35 AM   #3
Fully Optimized
 
technoman's Avatar
 
Join Date: Dec 2004
Posts: 3,382
Default Re: Headers and Footers (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
__________________
~~~ tEcHnOmAn ~~~
technoman is offline   Reply With Quote
Old 01-25-2005, 05:24 AM   #4
Beta Member
 
Join Date: Jan 2005
Posts: 5
Wink

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>
--------------------------
plmajholm is offline   Reply With Quote
Old 01-25-2005, 06:39 AM   #5
BSOD
 
Masahiro's Avatar
 
Join Date: May 2004
Posts: 1,896
Default Re: Headers and Footers (HTML)

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.
Masahiro is offline   Reply With Quote
Old 01-25-2005, 10:29 AM   #6
Fully Optimized
 
technoman's Avatar
 
Join Date: Dec 2004
Posts: 3,382
Default Re: Headers and Footers (HTML)

i don't want to have frames but i may have to
__________________
~~~ tEcHnOmAn ~~~
technoman is offline   Reply With Quote
Old 01-25-2005, 01:48 PM   #7
Mal
In Runtime
 
Mal's Avatar
 
Join Date: Jan 2005
Posts: 221
Default Re: Headers and Footers (HTML)

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.
__________________

Mal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0