Added on: Thursday 29th January 2009
You can of course hit the Refresh button but many people want to go back to the page and have the original search criteria - perhaps you want to view each result in turn.
I've tried various ways in PHP to do this by changing headers etc but the single line of code that works perfectly every time is as follows:
header("Cache-Control: max-age=300, must-revalidate");
The max-age is in seconds so the above keeps the page 'alive' for 5 minutes. You can change this as you like.
Andrew Parrott runs Round Ash Associates, a web design and development company based in Chagford on Dartmoor, Devon.
If you prefer updates via email then please enter your email address below and click Submit.
If you haven't been to Chagford before then take a look a what you are missing.
Sitepoint is an indespensible resource for web designers.
Internet Explorer isn't the only web browser and from a development point of view Firefox is much better.
As many of the articles on this site are slightly techy I thought I ought to link to a glossary of Internet terms.
The layout for this site uses one of Matthew James Taylors 'liquid layouts'.
©Round Ash Associates 2009. Powered by form2list.