Re: Can HTML_Quickform_Controller be used with DB_Table as HTML_Quickform can?
| From: | Mark Wiesemann | Date: | Tue, 24 Oct 2006 18:27:45 +0000 |
| Subject: | Re: Can HTML_Quickform_Controller be used with DB_Table as HTML_Quickform can? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25604@lists.php.net to get a copy of this message | ||
Matthew Vickery wrote:
> Is there an easy way with DB_Table and QF to insert ALL the validated
> form data into the database? (without having to write a long INSERT
> statement).
If you have defined the table fields in a subclass of DB_Table (i.e. the
normal table class you need for working with DB_Table), you can simply
pass the validated data array from HTML_QuickForm to the insert method
of DB_Table.
Regards,
Mark