Sunday, 9 June 2013

How to process forms in php?


Example -
When you submit the form you can use 2 types of methods.
  1. Post
  2. Get

You can use post method if you want to send large number of variables to server and in hidden manner. You can’t bookmark the page as values are not displayed in the browser.
Information sent from a form with the POST method is invisible to others  By default there is an 8 MB max size for the POST method. (You can change post_max_size in the php.ini file to send data with more size).

Get method is used to send information to server that is visible in browser and you can bookmark that page.

The PHP $_REQUEST Variable has the contents of both $_GET, $_POST, and $_COOKIE. The $_REQUEST variable can be used to collect form data sent with both the GET and POST methods.



Code and Syntax


Explanation

 For more php questions and answers, dumps,tutorials for beginners and experienced people visit http://www.top-php-interview-questions.blogspot.in  If you find any errors while executing this program, you can make your comments or mail me at reply2sagar@gmail.com










No comments:

Post a Comment