Question: PHP Create a form to allow the user to order coffee online and a PHP script to process the order. The user will initially be
PHP
Create a form to allow the user to order coffee online and a PHP script to process the order. The user will initially be prompted to select the type of coffee they wish to order, specify if they want regular or decaffeinated, the order quantity (# of pounds), their name, email address, telephone number, and shipping information. The different types of coffee and prices are below:
Coffee Price / pound for Regular Coffee
Boca Villa $7.99
South Beach Rhythm $8.99
Pumpkin Paradise $8.99
Sumatran Sunset $9.99
Bali Batur $10.95
Double Dark $9.95
The price of decaffeinated coffee is $1.00 more than the price of the regular coffee.
Your assignment should have two pages. The first page is straight html that has a form with the appropriate form elements to collect the user input. The form should then be submitted using the post method to the php script that will process the user input. The php script should display the user input, amount of money the user will pay, and a link that, when clicked, will take the user back to the input form. In the case of invalid or incomplete input, the appropriate errors will be displayed.
Here are examples of what the output should look like.
coffee.html

coffee.php

errors

Here is my code for coffee.html:
The Coffee House
Order Form
Here is my code for coffee.php
Order Summary
| Name: | |
| Address: | |
| City, State , Zip: | |
| Telephone #: | |
| E-mail: | |
| Return to input form; |
I'm at a sticking point and not able to move forward without messing my code up.
The only things I need that are left to do is have the order information table display on the PHP page and make sure a dollar is added to the decaf coffee if it is chosen and make sure errors display correctly if they occur. Please help.
The Coffee House Order Form Coffee: Select Coffee ORegular O Decaffeinated Type: Quantity (in pounds): Name: E-mail address: Telephone #: Address: City: State: Zip Submit Reset
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
