I haven't tested it to make sure this works, but can you use UNSET on
$_POST to basicaly clear it out after it has been sent? You can also
try using these headers to try and force a reload of the page:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
However, I don't think this is at all full-proof.
Conor
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of James Keeline
Sent: Tuesday, June 20, 2006 4:09 PM
To: [email protected]
Subject: Re: [php-list] Clearing Post
--- Wade Smart <[EMAIL PROTECTED] <mailto:wade%40wadesmart.com> >
wrote:
> Actually, Im having a bit of trouble with an error - that's what I
> call it - where by when data is submitted and checked, its resubmitted
> to the same page again to be checked. Sometimes Im getting a form back
> that would suggest that data was still in the $_POST. But I always
> thought that after you submitted - that data was gone.
>
> wade
The converse of what I wrote is true. Sometimes the browser will retain
the POST values in the HTTP request if the page is reloaded. Typically a
browser will warn you that you are going to send the POST values again.
When I want to reload the page without submitting the data again, I put
my cursor in the url and hit Enter to reload the page.
James
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/