RE: [PHP] Clear POST variables
| From: | Jay Blanchard | Date: | Thu, 16 Feb 2006 15:19:37 +0000 |
| Subject: | RE: [PHP] Clear POST variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230548@lists.php.net to get a copy of this message | ||
[snip]
How do I clear out the POST variables, or the variables that I have
set from the POST variables, so that when the page is refreshed it
will not resubmit. I have tried unset() and have tried to set it to and
empty value, but it doesn't seem to work.
[/snip]
At the end of the database entry unset($_POST) and then redirect to another
page that says Thanks! or redirect back to the empty form.