Week 4 Save the following code as an HTML file on your computer. Online Order Form Online Order Form Product Quantity Milk Chocolate Assorted Fine Chocolate Assorted Milk and Dark Chocolate Note: the...

1 answer below »
The assignment description is in the file(s) I'm linking. So use those as your guide on what exactly to do. This is a very short assignment. Make it completely unique!!


Week 4 Save the following code as an HTML file on your computer. Online Order Form table { border: 1px solid black; border-collapse: collapse; background: #fff; } th, td { border: 1px solid black; padding: .2em .7em; color: #000; font-size: 16px; font-weight: 400; } thead th { background-color: #1A466A; color: #fff; font-weight: bold; } input[type=text] { text-align: right; width: 200px; color: #000; } input[type="number"] { width: 3em; } .button { border: 1px solid #273746; border-radius: 5px; padding: 4px; background-color: #273746; color: #fff; } .default { background-color: #fff; color: #000; } .container { margin: 10px; }

Online Order Form
























ProductQuantity
Milk Chocolate

Assorted Fine Chocolate

Assorted Milk and Dark Chocolate







Note: the above HTML code is supposed to send FORM to a PHP script named processonlinedata.php in htdocs/week3 folder using the POST method. Create week3 subfolder in your htdocs folder. Create a php script named processonlinedata.php that does the following: 1. read the input data into appropriate variables 2. Calculate and display the total cost, total number of items, 5% taxes, and the total amount (total cost + taxes). Total cost = cost of a milk chocolate * milk chocolate quantity + cost of a assorted fine chocolate * assorted fine chocolate quantity + cost of assorted milk and dark chocolate * assorted milk and dark chocolate quantity Use the following values: cost of a milk chocolate : $2.50 cost of a assorted fine chocolate: $4.99, cost of a assorted milk and dark chocolate: $5.75. Sample output Number of milk chocolates: 6 Number of assorted fine chocolates: 5 Number of assorted milk and dark chocolates: 10 Total cost: $97.45 5% Taxes: $4.87 Total amount: $102.32 How to submit: submit only the PHP file in a Zip file. Note: you may use the postback method and include both HTML and PHP codes in a single .php file.
Answered 2 days AfterSep 21, 2021

Answer To: Week 4 Save the following code as an HTML file on your computer. Online Order Form Online Order Form...

Arun Shankar answered on Sep 24 2021
139 Votes
";
echo "Number of assorted fine chocolates: $assortedfine"."
";
echo "Number of assorted milk an
d dark chocolates: $assortedmilk"."
";
echo "Total cost = $$cost"."
";
$tax = 0.05 * $cost;
echo "5% Taxes: = $$tax"."
";
$total = $cost + $tax;
echo "Total cost: = $$total";
?>
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here