dynamic input elements

Dynamic Input Boxes with Zend Framework 1.12

I recently ran into a scenario where I needed to have the ability to use a dynamically created number of text inputs on a Zend Framework Form. My form will be used to ship an unknown number of packages. The user will enter the weight for each package in its own input element on the form. If the user needs another package, the user will click "Add Package" until the shipment is done and ready to be processed. In the end, we may have a shipment with one package, or a shipment with ten, we just dont know. Here's how I did it:

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer