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

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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.