Re: When hitting Refresh I still get old data ..
| From: | christian haines | Date: | Tue, 26 Nov 2002 02:09:12 +0000 |
| Subject: | Re: When hitting Refresh I still get old data .. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126032@lists.php.net to get a copy of this message | ||
is it that your response page and the page processing the data are the same
page? i have had issues with this previously and had to use a 3 step
process -
1. address book form
2. processing script page
3. response page
--
----
Christian Haines
Internet Developer
MITOUSA.
Branding Strategies for Visual & Interactive Design
102 Tynte Street
North Adelaide SA 5006
e) christian@mitousa.com
t) 08 8361 9022
f) 08 8361 9977
w) www.mitousa.com
"Krispi" <kristijan.marin@guest.arnes.si> wrote in message
news:20021125233518.86482.qmail@pb1.pair.com...
> Hi!
>
> Here is my scenario. I'm doing a dynamic html with php for my address
book.
> When I enter all the data that is necesary and hit Submit, for saving the
> user( using POST), I get an error or success message, which is OK, but if
I
> press a Refresh button now, it will try to save the user again, because
old
> data is still in the $_POST.Why??
>
> I already tried header directives:
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> // always modified
> header("Cache-Control: no-store, no-cache, must-revalidate",false); //
> HTTP/1.1
> header("Cache-Control: post-check=0, pre-check=0", false);
> header("Pragma: no-cache");
>
>
> Thx,
> Krispi
>
>
>
>