Question: 1) create a webpage having an order form. A sample is listed at the end of this exercise. (2) create a javescript to verify the

1) create a webpage having an order form. A sample is listed at the end of this exercise.

(2) create a javescript to verify the correctness of each value collected from the form in (1). The rules are below:

0

0

0

1

If a value collected from the form in (1) is wrong, for example, the total number of ham is -3, warn the user.

(4) create a css script that will specify the background color, text alignment, font family, font weight, and text color of the webpage created in (1).

(3) Create a php script that will be executed when the button on the order form in (1) is clicked. The script calculates the cost of a pizza. It has 5 variables representing the size of the pizza (either small, medium, or large), the number of cheese toppings, the number of pepperoni toppings, the number of ham toppings, and the cost of a pizza. The formula of the cost of a pizza is determined by:

n Small: $10 + $2 per topping

n Medium: $12 + $2 per topping

n Large: $14 + $2 per topping

For example, two large pizzas with one cheese (1x$2), one pepperoni (1x$2) and two ham toppings (2x$2) should cost a total of $44. (i.e. 2x($14+1x$2+1x$2+2x$2)=$44)

The script calculates the cost and prints the size of a pizza, the number of cheese toppings, the number of pepperoni toppings, and the number of ham toppings, and the the cost of a pizza. A sample is listed at the end of this exercise.1) create a webpage having an order form. A sample is listed

? ? C D 127.00.1/cs355/march%2028/1.html Pizza Order Form Provide what you like and then you will know your total cost for your order 127.0.0.1 says the number of the toppings must be 0(zpepc-10 OK the number of cheese toppings 3 the number of ham toppings 5 how many pizzas do you order? 2 the number of pepperoni toppings the size of the selected pizza medium: $12 Calculate TotReset ?-), CD 127.0.0. 1/csc355/march%2028/1.php We have received your order, thank you! The detail of your order is below the number of cheese toppings 3 the number of pepperoni toppings 2 the number of ham toppings 5 . the size of the ordered pizza- 12 the number of the ordered pizza 2 Your total total cost is: 64

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!