944,116 Members | Top Members by Rank

Ad:
Dec 18th, 2006
0

Including header file using HTML

Expand Post »
Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fivepointer is offline Offline
3 posts
since Dec 2006
Dec 18th, 2006
0

Re: Including header file using HTML

You need to use a server-side language for this as HTML is static and cannot perform dynamic actions.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Dec 18th, 2006
0

Re: Including header file using HTML

All you need to do is save you page as "mypage.php" and put this piece of code in for your header and footer:
[php]<?php

include ("includes/header.php");

?>[/php]

Hope this helps
Reputation Points: 178
Solved Threads: 15
Nearly a Posting Virtuoso
roryt is offline Offline
1,282 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Okay help a complete novice or direct me somewhere else
Next Thread in HTML and CSS Forum Timeline: One Blank Page Problem, Please Help!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC