I want to create a form similar to the form given below using Zend framework
<input type="text" name="number[]" />
I tried with the following code
$element1 = new Zend_Form_Element_Text('element', array('isArray' => true));
$element1->setName('element');
$element2 = new Zend_Form_Element_Text('element', array('isArray' => true));
$element2->setName('element');
But i came across a problem as i could only get the latest value of the array. I want to get full array in the textfield name 'number'.
Could you please help me on this issue. Thanks.