Edward Peloke wrote:
I was up late last night creating insert and update forms for tables in my
db and knew there had to be a better way.  I do have a class that will
generate forms but I still have to create each input..i.e
$forms->inputBox(), etc.  I want to be able to pass in a table name and have
a form returned to me.  How do other's handle this?  My first thought is to
have an xml file that maps the database columns to form elements such as
text, radio, etc then when the class is called, it searches the xml file for
the passed in name and builds the appropriate form.  Is this the best way?


Thanks, Eddie


PEAR's DB_DataObject_FormBuilder will do this. You have to get DB and DB_DataObject set up, but it's not too hard to do. Mail me if you need more help (but read the docs first).
http://pear.php.net/package/DB
http://pear.php.net/package/DB_DataObject
http://pear.php.net/package/DB_DataObject_FormBuilder


--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to