How to validate form element generated by js in Zend Framework -
I want to allow users to add textbox elements by using Javascript by clicking on the Add button.
Want to know how I can use Zend to validate those elements created by Java.
No way has been made for this but it should not be too difficult to do.
First of all, I suggest designing my javascript-generated elements with array notation. name = 'someName []'
, so that PHP can be parsed in the array in post / gate.
Then, you can simply loop on the resulting array, and call your validator (s) / Verifier series.
Comments
Post a Comment