RE: [PEAR] Newbee PHP HTML_QuickForm Best Way to process From Data
| From: | Mike Carter | Date: | Wed, 07 Jan 2004 11:31:34 +0000 |
| Subject: | RE: [PEAR] Newbee PHP HTML_QuickForm Best Way to process From Data | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10022@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Matthias H. Risse [mailto:usenet@risse.org]
>
> Hi Mike!
>
> You got also informations on how to drop the dataarray in the
> end into a
> database. i am wondering especially if there is code available for
> dropping data relational into a database.. espescially n:m
> relations and
> dates seem to be a special case.
That would come in the process callback for Quickform. The example
elements.php in the QF package demonstrates this perfectly. Just put your
database code in to the proces method.
> ive coded a array2sql function myself, but wonder if there is a
> cleaner approach. tried db_dataobjects, too - but it doesn suit my
> needs to well atm (its a reat pack anyway).
>
> ideas?
From what you have described it might be easier to just use the FormBuilder
package. It turned up after I'd done my things so have not personally used
it. However, the description seems ot fit well?
http://pear.php.net/package/DB_DataObject_FormBuilder
Regards,
Mike C.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________