带有Zend Form的可变输入数量的表单

I need to create a form that accepts a variable number of transactions. The form has 4 elements and an array of transactions(defined by: type(cr/dr), date, ledger(dropdown) and amount). There can be any number of transsactions:this is handled by javasript and sent as a post array. Clearly Zend Forms isn't equipped to deal with this. How do I accept an infinite number of inputs with Zend Form?

You have to create all 4 form fields to array type by writing

isArray=>true

by using this your form field name like type[],date[],ledger[] and amount[]. and you got all values in controller after form post.

These element are like array.now you can do anything that you want.