HTML/PHP Practice Exercise: Process form data
Create an HTML form and use PHP to process fee data assessed at registration.
Produce a page to display the fee data and a total.
Create a form for data collection with labeled text boxes. Include unpaired
input components(tags) for three data items each having an attribute for the
text(box) type and a parameter name to pass. Include another input component
for a "submit" button with the value "enter". One input item should be for a
tuition amount, another for books and the other for fees. The form's action
attribute should reference the php script named PrintStatement. Specify the
"post" method.
Code a PHP script to access the $_POST array for the values associated with the
three form variables referred to as tuition, books and fees (use their form
names as "associative indexes"). Assign the "posted" values to local variables
(e.g. $tuition = $_POST['tuition'];). Assign the sum of these three to a
variable named $total. Print(echo) these values on separate lines. Include
side labels.