Re: [PHP] $_POST in header
- From: cleeder@xxxxxxxxx (Craige Leeder)
- Date: Tue, 18 Nov 2008 09:09:19 -0500
Hi Alain,
In short, you can't. It's the users computer that remembers what headers it sent last time, and when you refresh, it WILL ask them to send those headers again.
The way this is typically handled from a programming perspective is to do all your processing on one page, and then jump away [via header("Location: ") ] to another page for display. This is the only way I have come across to solve this problem.
You could use a Switch statement on the page to handle this, by passing it's case via querystring. e.g. Case 1: Process; Case 2: display;
Hope this helps,
- Craige
Alain Roger wrote:
Hi,
i have a PHP page with a form.
when user click on submit button, it sends form data to itself (so it sends
data $_POST to itself).
i would like to access to header itself to reset those $_POST data to avoid
(in case of F5 under windows system) to resend the same data serveral time.
therefore how can i get the header data and change them ?
thx
F.
.
- References:
- $_POST in header
- From: "Alain Roger"
- $_POST in header
- Prev by Date: RE: [PHP] $_POST in header
- Next by Date: Re: [PHP] while-question
- Previous by thread: RE: [PHP] $_POST in header
- Index(es):