Doing Something with All that Data!
On Submit…the data from a form is sent to the.php file listed under action
output a message or change some value on the current page current file as the value for the action attribute process the data in some internal way and/or you want to display results on a page different from the one on which the form itself is located… separate file in which you have written the PHP for handling the data as the value for the action attribute
superglobal PHP variable If the data has been submitted via the method post, then array’s name is… $_POST associative arrays indices used to generate the array are the names of your form field elements To access the value from a particular field of your form, you need to use its name.
the textbox has the name “name” use the index value “name” to access the cell in the associative array: $_POST['name']
Pulling data from the superglobals
You Don’t Know Where That Input Has Been! Clean it UP!
$variable=strip_tags($variable);