Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Interacting with HTML form data in Zend Framework

Hello Friends,

As i mention in my previous post, i am working with Zend Framework from scratch. I like to share small small tips which are helpful to you guys. If you are working with forms and need to check that the form is submitted or not ? and if form is submitted than Retrieve the form data and process it. How to retrieve form data ? Below are the list of these ideas.

If you want to check that form is submitted or not than you may check it using below statement. (For Post method)

$this->getRequest()->isPost()

If you want to retrieve form data once form is submitted, than you may write below statement. This will return array of all form data. (For Post method)

$this->_request->getPost()

Share:

No Comments Yet.

Leave a Reply

Your email address will not be published.