Re: PHP Dynamic Form Generator
| From: | Manuel Lemos | Date: | Mon, 16 Apr 2007 18:53:09 +0000 |
| Subject: | Re: PHP Dynamic Form Generator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253048@lists.php.net to get a copy of this message | ||
Hello,
on 04/16/2007 11:14 AM Tom Chubb said the following:
> Dear list,
> I'm currently reviewing a load of scripts to dynamically generate a form
> for
> a membership system.
> I have designed a registration form, and once registered and logged in
> there
> are a load of different options relevant to people's profile (which will
> all
> be radio check boxes) in a 2nd form.
> As the number of these check-boxes may change, I'd like to be able to read
> the structure of the relevant table and generate the form from that.
> I just wanted to ask everyone for any advice on this and which scripts you
> use? I'm not being lazy, but currently I'm looking at 8 of them from
> phpclasses.org and sourceforge and I'm sure someone out there knows exactly
> what I'm looking for.
> Thanks in advance,
I suppose you have evaluated already the PHP Forms Generation and
Validation class. Among many other things, it can validate groups of
checkbox or radio buttons to assure that at least on is checked.
http://www.phpclasses.org/formsgeneration
Take a look here at a live example that demonstrates that:
http://www.meta-language.net/forms-examples.html?example=test_form
or look at this tutorial video that explains the features employed in
the example above:
http://www.phpclasses.org/browse/video/1/package/1/section/example-form.html
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/