You’re ready to start handling forms in PHP!
<?=is shorthand for
$_GETis an associative array containing data from a GET request.
$_POSTis an associative array containing data from a POST request.
$_REQUESTis an associative array containing data from both GET and POST requests. It should only be used if you don’t care which method was used.
nameattributes in the HTML form, which need to be unique.
actionattribute is used to specify which file should handle data from the form request.
This code contains two forms:
Use these forms to check your understanding of how PHP handles the form inputs.