I want to make a edit profile form for my website.
My idea is getting JSON object and after user updates the data, I will use Ajax to send the request to update the database.
Here is the question.
I want to use the Zend validator to validate the form.
How can I use it when I use ajax to submit data?
Same 🙂
you send JSON array (comming from the form) and it can be validate like $form->isValid(Zend_Json::decode($array));