2

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.

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.