The most important thing to notice when dealing with HTML forms and PHP is that any form element in an HTML page will automatically be available to your PHP scripts.
Example
The example below contains an HTML form with two input fields and a submit button:
< html >
< body >
< form action="welcome.php" method="post" >
Name:
Age:
< input type="submit" / >
< /form >
< /body >
< /html >
When a user fills out the form above and click on the submit button, the form data is sent to a PHP file, called "welcome.php":
"welcome.php" looks like this:
< html >
< body >
Welcome !< br / >
You are years old.
< /body >
< /html >
Output could be something like this:
Welcome John!
You are 28 years old.
The PHP $_GET and $_POST functions will be explained in the next chapters.