Re: How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- From: Juliette <jrf_no_spam@xxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 07:16:45 +0200
alex.alexander@xxxxxxxxx wrote:
I've been searching for a way to prevent that STUPID re-post warning
message from showing up when you hit the refresh button on your
browser...
I finally found a good solution that does not require redirection,
extra pages, etc. etc.
Just run the following commands at the end of your post-processing php
file:
foreach ($_POST as $var => $value) {
unset($var);
}
This way you'll never have re-posting issues and you'll get rid of the
stupid warning message! :D
Except that your solution will not work as you are only unsetting the local variable $var.
However the following should work:
unset( $_POST);
or:
foreach( $_POST as $var => $value) {
unset( $_POST[$var] );
}
.
- Follow-Ups:
- References:
- How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- From: alex . alexander
- How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- Prev by Date: How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- Next by Date: Using Asynchronous ODBC ?
- Previous by thread: How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- Next by thread: Re: How to prevent re-posts and stupid re-post warning message on page refresh [SOLVED]
- Index(es):