Re: After INSERT form submit - Data doesn't refresh!

From: Date: Tue, 22 Jul 2008 14:16:06 +0000
Subject: Re: After INSERT form submit - Data doesn't refresh!
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-277168@lists.php.net to get a copy of this message
Without seeing the code it's hard to tell.. But couldn't you just use a header("Location: a.php"); after the insert statement? Or is that too ugly of a hack? :) It works for me on a project I'm working on. On Jul 22, 2008, at 9:42 AM, Daniel Brown wrote:
On Tue, Jul 22, 2008 at 8:56 AM, Yeti <yeti@myhich.com> wrote:
ok, in that case forget the Last-Modified or set it to the current date. header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT');
Expanding on this, keep in mind that some people may be as far ahead as GMT +1300. So if you want to use the Last-Modified HTTP/1.0 standard, you may want to try this: <?php header("Last-Modified: ".gmdate("D, d M Y H:i:s",strtotime("+3 days"))." GMT"); ?> As for turning off caching in his own browser, while it may fix the OP's problem on his machine, it by no means fixes the bug in general. Other users will still be faced with the same issue. --</Daniel P. Brown> Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@raoset.com

« previous php.general (#277168) next »