Re: quick form builder

From: Date: Thu, 10 Jun 2004 18:25:13 +0000
Subject: Re: quick form builder
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13091@lists.php.net to get a copy of this message
Loulou wrote:
I would like to know how generate a form with formbuilder with the following structure. It would be wonderfull if the system generates automatically the checkbox cases (for the multiple choices). Someone could help me? table client : customerId customerName customerAddress table product productId productName join table customerId productId
If you're looking for a form based on the database look no further than DB_DataObject_FormBuilder. It will auto-generate forms based on your database. You *do* have to set up DB_DataObject first, but it's not too hard. If you're having troubles, feel free to contact the list (or me). I've also added support for the checkbox thing you mentioned. Well, actually, Norbert Mocsnik created the code, but I've prettied it up a bit. If you want to try it out, the code is at: http://www.reversefold.com/PEAR/DB_DataObject_FormBuilder/FormBuilder.dates_and_crossLinks.phps You can check out the API docs on PEAR's site: http://pear.php.net/package/DB_DataObject_FormBuilder/docs/0.9.0/DB_DataObject_FormBuilder/_DB_DataObject_FormBuilder-0.9.0_FormBuilder_php.html I also have some docs that I created: http://www.reversefold.com/PEAR/DB_DataObject_FormBuilder/docs.html Just ask if you need help with it. :-) -- paperCrane <Justin Patrin>

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