NYCPHP Meetup

NYPHP.org

[nycphp-talk] Dynamic Forms and Form Handlers

Colin Goldberg coling at macmicro.com
Wed Aug 31 15:02:59 EDT 2005


You could use the display/visibility style attribute to show or hide fields. eg. make a decision in Javascript or PHP to set this attribute for each field - just wrap each field in a DIV tag with an ID.

Colin Goldberg

----------------------------------------
 From: Nasir Zubair <nasir81 at gmail.com>
Sent: Tuesday, August 30, 2005 10:02 PM
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] Dynamic Forms and Form Handlers 

Thanks David.

 On 8/30/05, David Mintz <dmintz at davidmintz.org> wrote: 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/
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP 
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org

-- 
Nasir Zubair 
http://www.nasir.us/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050831/78330489/attachment.html>


More information about the talk mailing list