Web Design Lab Exercise Week 2
- This example shows how an HTML form and the PHP script that processes it can be combined in one form.
Do the same with your HTML and PHP files from last week's exercise.
- Write a PHP script that outputs a form as below, and calculates the total cost for each row and the grand total to 2 decimal places.
The script and form should be in the same file. You should consult the examples in chapter 4 of PHP for the Web.
Model answer