Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I posted this priviously and get the answers from chegg but, did not explained how to fix the error am getting in php code. It

I posted this priviously and get the answers from chegg but, did not explained how to fix the error am getting in php code. It says, "Notice: Undefined index: tax in .opt/lamoo/htdocs/HOMEW4/order_form.php on line 7. " I provided my code below in HTML and PHP. Please show your code and explain how to fix this error problem and why it is giving me error and show the output.

This is assignment requirements. image text in transcribed

This my PHP code

image text in transcribed

This is my HTML

image text in transcribed

This the output am getting and it says line 7 error on php code. Why is this happening and I cant see the error.

image text in transcribed

In the second exercise, you will create an order form for user to fill in. You PHP script will process the order form and then compute how to charge user. Ex-2 Create an html such as the following which will ask the user to enter an order form. It will calculate the total based on the business logic: Total -Quantity Unit price-Discount+ Shipping cest This amount will then be used to calculate tax. The final result after plus tax will be divided by the number of payments entered by user The business logic for shipping handling cost is calculated as follows $5.00 for Slow and steady.. $995 for Put a move on it. $19.36 for I need it yesterday! Fill out this fom to caloelate the total cost Price: 100 Quastiry: 20 Discosut: 12 20 widget(s) at $100 price each plus a $5.00 shipping cost and a 8 perceat tax rate methed Sow and steady and steady 3.00 Shipping Number of paymests to make: 1 your $12 discouat, the total cost is $215244 over 1 moothly paymeats, that would be $2152.44 each l(100 20-12+5) *1.081/1 (1993 *1.081/1 2152.44 Fill out this form to calculate the total cost: Price: 100 Qusatity: 20 Disconnt: 12 Tax: 8-(%) Shippng nedodL need eyesterdam HWpice each plus a Number of payments to make: 2 20 widgetis) at $100 price each plusa $19.36 shipping cost and a percent tax rate. After your 512 discouut, the sotal cost is $21 method: I need over 2 mouthly paymeots, that would be $10839744 each 100 20-12+ 19.36)*1.081/2 [2007.36 1.08]/2 (2167.9488]/2 1083.9744

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

OUTLINE the five steps in the labour relations process.

Answered: 1 week ago

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago

Question

=+from: a) a MNEs perspective? and b) the HRM managers perspective?

Answered: 1 week ago