0

Using Zend form how would I make a control (element) an array?

An example use case:

I have a list of items and I want each item to have it's own checkbox on a form, but those checkboxes should post as an array. This means that each checkbox name is 'item[]'. How can I achive this using Zend Form? I have tried setting the isArray property on the checkboxes to true but giving them the same name, but this doesnt seem to work.

1 Answer 1

2

http://framework.zend.com/manual/en/zend.form.standardElements.html#zend.form.standardElements.multiCheckbox

Sign up to request clarification or add additional context in comments.

Comments

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.