Re: dynamically building insert/update forms from db
| From: | Chris Boget | Date: | Fri, 14 May 2004 17:43:47 +0000 |
| Subject: | Re: dynamically building insert/update forms from db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186242@lists.php.net to get a copy of this message | ||
> 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?
I believe there is a PEAR library package that does this. You might want to
do some research to see if it fits your needs.
Chris