Question: Use PHP to build a form that will allow a user to type in the price of a candy in addition the number of quarters,
Use PHP to build a form that will allow a user to type in the price of a candy in addition the number of quarters, dimes, and nickels they have. After the user submits their information, the form should tell them how much money they have, how many candies they can buy, and what their change will be. The form should check to make sure valid information was typed in (use is_numeric() and empty().) and let the user know if their info was wrong via output to the page.Add an input for pennies and let the user know what kind of change they would get back in quarters, dimes, nickels, and pennies.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
