Re: html_quick_form Clear submitted values

From: Date: Wed, 24 Oct 2007 07:40:11 +0000
Subject: Re: html_quick_form Clear submitted values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28115@lists.php.net to get a copy of this message
Hi, Nicolas de Bari Embriz Garcia Rojas wrote:
I want to continue showing the form after users have submited the data, what i am currently doing is this // Try to validate a form if ($form->validate()) { $form->process(); $form->displayForm(); } else { $form->displayForm(); } but that shows the previous submited values, is there a way of show the clean form again?
The proper way is to do a redirect after successful form submit. In the other case you risk getting the same data if user reloads the page.

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