Re: writing a class in php to print form elements
| From: | Justin Patrin | Date: | Wed, 07 Apr 2004 21:48:03 +0000 |
| Subject: | Re: writing a class in php to print form elements | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182728@lists.php.net to get a copy of this message | ||
Andy B wrote:
hi... is it totally usefull/reasonable to write a class in php that prints different different form elements in html... i.e. inputs, buttons, drop downs, multi selects and son? that way (at least i think) then it would be easier to change the element attributes dynamically...Sure it is! But you may want to check out HTML_QuickForm from PEAR. It already does so much and there's lots of supporting classes there like DB_Databject_FormBuilder and HTML_QuickForm_Controller. http://pear.php.net/package/HTML_QuickForm -- paperCrane <Justin Patrin>