Re: QuickForm question

From: Date: Fri, 19 Nov 2004 18:13:42 +0000
Subject: Re: QuickForm question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15695@lists.php.net to get a copy of this message
On Fri, 19 Nov 2004 09:56:55 -0500 (EST), Jay Drake <jdrake@planhouse.com> wrote: > I'm reasonably new to PEAR and have just started using QF and DB. I'm > currently trying to create a form which allows a user to edit a given > record in the database. I'm sure the process of selecting the data from > the database then creating a form which uses the data which can then be > edited and submitted to update the database is familiar. What I'm hoping > is that I can do this using QF. > > I did note mention of setDefaults, but I'm not certain whether this is > what I am needing to use or how it would be used. If I'm on the right > track with setDefaults I would really appreciate being pointed toward some > examples of how to use it and if not, being pointed in the right direction > would be appreciated as well. > DB_DataObject_FormBuilder can create and process forms for you automatically from the types of the columns in the tables. You would have to use DB_DataObject, which is a different way of accessing the DB (no / very little SQL). It uses DB as its backend but builds the SQL for you and gives you an object oriented interface to DB data. FormBuilder takes a DataObject and make a QuickForm out of it. It can also process that form to either insert a new record or update an old one. http://pear.php.net/package/DB_DataObject_FormBuilder A package I created called BD_DataObject_FormBuilder_Frontend (not in PEAR) give yout a listing of all of the tables in your DB and lets you view, edit, insert, and delete any data. http://www.reversefold.com/tikiwiki/tiki-index.php?page=DB_DataObject_FormBuilder_Frontend -- Justin Patrin

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