NYCPHP Meetup

NYPHP.org

[nycphp-talk] Dynamic Forms and Form Handlers

David Mintz dmintz at davidmintz.org
Tue Aug 30 12:57:41 EDT 2005


On Tue, 30 Aug 2005, Nasir Zubair wrote:

> I'm working on a small project for my employer to collect data from clients.
[...]
> I would like NOT having to update both the HTML forms and php form
> handlers manually every time. Does anyone know of a barebone framework which
> will allow me to create such forms and form handlers? Or if you know of any
> resources which I can consult, that'll help.

Just a thought:  You could subclass HTML_QuickForm and have its
constructor add all the elements you expect to be common to all the forms
you will need. Then instances of your subclass can remove/add additional
elements as needed.

http://pear.php.net/manual/en/package.html.html-quickform.php

---
David Mintz
http://davidmintz.org/



More information about the talk mailing list