When HTML form send data to the server, PHP can extract the data for processing.
In post method HTML code looked this:
This means that the form data will be submitted to the "process.php" web page using the POST method.
PHP stores all the "posted" values in an associative array called "$_POST".
The values of "name" of the form became the keys in the "$_POST" associative array.
As the names in a form are used as the keys in the associative array, make sure that names of input items are unique.
If not there will be problems.
The alternative to the post method is get.
HTML form using the get method looks like this:
This means that the form data will be submitted to the "process.php" web page using the GET method.
The URL, after clicking submit, would have this added on to the end of it:
The question mark "?" tells the browser that the following items are variables.
The values of "name" of the form became the keys in the "$_GET" associative array.
NoteFor more detail please see Php Manual at http://www.php.net