Question: I have the following HTML and PHP code. The desired result is for the PHP code to calculate predefined amounts if a checkbox is checked.
I have the following HTML and PHP code. The desired result is for the PHP code to calculate predefined amounts if a checkbox is checked. The HTML I have is working fine, but the PHP code is not returning any values when the code is executed. All the print and echo php statements do not seem to be executing. I am not receiving any errors upon running the program, I am just not getting any results back, besides the html coded options
HTML Code:
PHP Code:
Customer:
| Product | Unit Price | Quantity | Item Cost |
|---|---|---|---|
| Four 25-Watt Light Bulbs | $2.49 | ||
| Eight 25-Watt Light Bulbs | $4.29 | ||
| Four 25-Watt Long Life Light Bulbs | $3.95 | ||
| Eight 25-Watt Long Life Light Bulbs | $7.49 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
