[fw-general] Zend_Form with elements having array names

2009-07-29 Thread Mike Wright
Hi all, I'm up against something that has me stumped (not too hard to do ;) In html it is possible to name form elements with array names. For example, if I wanted a collection of an arbitrary number of elements such as favorite colors I could create elements like: input

Re: [fw-general] Zend_Form with elements having array names

2009-07-29 Thread Hector Virgen
Do you need multiple text inputs that post as an array? You could create a multiText form element that extends Zend_Form_Element_Multi. Take a look at Zend_Form_Element_MultiRadio to see how it works. Yesterday I had to create a series of checkboxes that were built to look like a navigation tree