Including header file using HTML

Reply

Join Date: Dec 2006
Posts: 3
Reputation: fivepointer is an unknown quantity at this point 
Solved Threads: 0
fivepointer fivepointer is offline Offline
Newbie Poster

Including header file using HTML

 
0
  #1
Dec 18th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Including header file using HTML

 
0
  #2
Dec 18th, 2006
You need to use a server-side language for this as HTML is static and cannot perform dynamic actions.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: Including header file using HTML

 
0
  #3
Dec 18th, 2006
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
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC