I'm using Zend_Form to build a form with array notation like this: (...) <input name="text[]" type="text"> <input name="text[]" type="text"> (...)
The reason for this array notation is that I want to be able to dynamically add input elements to the dom through javascript. I can read the input values through $_POST['text'][0], $_POST['text'][1] and so on. This works great. Now my question is twofold: 1. How can I populate the form (for an edit action). Can I do this? $pop['text'][0] = "value0"; $pop['text'][1] = "value1"; $form->populate($pop); 2. What's the best way to validate the input elements I've added to the dom via javascript. Is there an easy way? -- View this message in context: http://www.nabble.com/Populating%2C-validating-form-elements-with-array-notation-tp20219845p20219845.html Sent from the Zend Framework mailing list archive at Nabble.com.