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()

rax rss Interacting with HTML form data in Zend Framework  rax twitter Interacting with HTML form data in Zend Framework  rax facebook Interacting with HTML form data in Zend Framework  rax myspace Interacting with HTML form data in Zend Framework