Re: QuickForm Clear posted fields

From: Date: Tue, 07 Feb 2006 17:46:42 +0000
Subject: Re: QuickForm Clear posted fields
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22843@lists.php.net to get a copy of this message
sorry, but clearing the $_POST will not show you an empty form.... Mark Wiesemann wrote:
"Damien Cros" wrote:
Ok, but there must be a way to clear the submitted values and build the form as if it was the first time. Like emptying the proper array. Or maybe just clear $_REQUEST, I don't know.
You can clear $_POST, of course. The fields will be empty then. But as Alexey said, you don't really want that. If the user reloads the page, the original values will be submitted again. => The only clean solution is a redirect. Regards, Mark


« previous php.pear.general (#22843) next »