Re: Clearing a QuickForm after Submit
| From: | Alexey Borzov | Date: | Wed, 07 Jan 2004 12:04:23 +0000 |
| Subject: | Re: Clearing a QuickForm after Submit | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10024@lists.php.net to get a copy of this message | ||
Hi!
Alex Housley wrote:
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 ;-)It is usually better to redirect after you put the data into the DB. And you can display the table and a new form on redirect target. Alternatively, you can use setConstants(), the constants override submitted values for form display.