I wonder if you know any way (php or html code) to block the browser to cache a page.
I have 2 pages the first one (list.php) displays the query results. If i delete a record I pass all the vars to the second page (update.php). The update.php delete the records and redirects thw browser to the list.php. All works perfect until this step.
If I go somewhere else in the site and then go back the list.php will display the records that I have delete. If I refrsh it (right click -> refresh) displays e the right results.
I hope you understand what I have write.
P.S. The list.php and update.php works in iframe. The iframe is called in the index.php.
Page refresh
Moderator: General Moderators
Put this in your PHP code before you output any HTML data (right at the top of your page):
[edit]Don't mention it...
Code: Select all
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header('Pragma: no-cache');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');