Clearing a QuickForm after Submit
| From: | Alex Housley | Date: | Wed, 07 Jan 2004 00:05:38 +0000 |
| Subject: | Clearing a QuickForm after Submit | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10014@lists.php.net to get a copy of this message | ||
Hello
When I submit a form using QuickForm all of the data is automatically set as
the default value when the form is redisplayed.
Is there any way to clear the form? I am sending the form values to be
updated in $form->validate()
.and then want to reset the form *before* $form->display().
What I want to do is insert the form data into a database and then display
an updated table, and have a fresh from to insert a new record. I got the
first bit sorted and it seems to be the easy bit that's bothering me ;-)
Many Thanks,
Alex