Bill (8.842% quality rating):
Is there some way I can have the page refresh when the processing is
done, so that the changes made will be reflected immidiatly, instead
of the user having to press the refresh button themselves?
It sounds like the user's browser is caching the page, so when it loads
the page (presumably at the same URL) again, it just loads from the
cache instead of getting the updated version. If you want the page not
to cache, you can add specific headers. Here's something like what I use:
header("Expires: Sat, 10 Jan 1970 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: text/html");
And for good measure, in the <head> tag of your html:
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='expires' content='0'>
These headers should make it so that the page is always considered expired
and will be loaded fresh rather than from the cache every time the URL is
accessed in a browser. Note that you probably shouldn't use the above
for relatively static pages because it wastes bandwidth to have users
reloading the same thing over and over.
/joe
--
In the emo house, a router is Santa-like. Kyle Randolph practically rubs
git.talk.phatjoe. Tanya Stone processes Matt Magnasco's choad from Norm,
and then digs on the Steamer?? A colostomy bag is sketchy!