0

Dear Experts

I have followin codes

CSS

#footer {
	clear:both;
  width: 826px;
  height: 50px;
  background: rgb(0%, 80%, 40%);
  padding: 5px;
  margin: 0;
line-height: 50px;
}

HTML

<div id="footer">
Last Updated : January 01, 2012
  </div>

Footer tags is included in all 5 pages, When I update any page then I have to edit this line

Last Updated : January 01, 2012

in all pages

Is there a way to create variable to store last updated value.
Then this value must show in the footer div of every page.

Please help

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by carrieathomer
0

I the website on a server with PHP available? A simple PHP include will let you reference the footer in each page but only require you to update it once (in the footer.php file you would create).
Although I always assumed that the date updated applied to that page in particular. If you only update page 1 should the updated date change for page 2?

0

I never tried this in html,

in classic asp or php, we will use a feature called SERVER SIDE INCLUDES

that is creating a seperate file html or asp , name it footer.html

then include this file all the pages

like below

<div><!--#include file="footer.html" -->
</div>

so you have to modify only one file footer.html , incase if you want to update

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.