Question: Problem Develop a web application for submitting an order. It has the following two php programs: index.php 1) it displays a blank order form. The


Problem Develop a web application for submitting an order. It has the following two php programs: index.php 1) it displays a blank order form. The quantity combo box has values from 1 to 6. Credit card text boxes are set as type of password. Sample values are provided in the following figure. Order Form Product: LCD TV Quantity: 2 Unit Price: 456.25 Name: Jason Brown 100 Main St. Pomona, CA Shipping Address: 91709 O Visa Master Card Credit Card: 4. O American Express O Discover Credit Card Number: ... Repeat Credit Card Number: Submit Order 2) Once the submit button is clicked, it sends the form to display.php for processing. 2) If any of those following errors occurs, user sees an error message in red on the form page (i.e., index.php page). a) A price is not entered or is an invalid number. Information for product, price, and name are carried over so that user doesn't need to re-enter them, as shown below. Order Form Must enter a valid price. Product: LCD TV Quantity: 1 Unit Price: adf Name: Jason Brown Shipping Address: O Visa O Master Card Credit Card: O American Express O Discover Credit Card Number: Repeat Credit Card Number: Submit Order b) Credit card numbers are not entered or do not match. The follow figure shows the error message for card numbers not match. Information for product, price, and name are carried over. Order Form Credit card numbers do not match. Product: LCD TV Quantity: 1 Unit Price: 456.25 Name: Jason Brown Shipping Address: O Visa O Master Card Credit Card: O American Express O Discover Credit Card Number: Repeat Credit Card Number: Submit Order Problem Develop a web application for submitting an order. It has the following two php programs: index.php 1) it displays a blank order form. The quantity combo box has values from 1 to 6. Credit card text boxes are set as type of password. Sample values are provided in the following figure. Order Form Product: LCD TV Quantity: 2 Unit Price: 456.25 Name: Jason Brown 100 Main St. Pomona, CA Shipping Address: 91709 O Visa Master Card Credit Card: 4. O American Express O Discover Credit Card Number: ... Repeat Credit Card Number: Submit Order 2) Once the submit button is clicked, it sends the form to display.php for processing. 2) If any of those following errors occurs, user sees an error message in red on the form page (i.e., index.php page). a) A price is not entered or is an invalid number. Information for product, price, and name are carried over so that user doesn't need to re-enter them, as shown below. Order Form Must enter a valid price. Product: LCD TV Quantity: 1 Unit Price: adf Name: Jason Brown Shipping Address: O Visa O Master Card Credit Card: O American Express O Discover Credit Card Number: Repeat Credit Card Number: Submit Order b) Credit card numbers are not entered or do not match. The follow figure shows the error message for card numbers not match. Information for product, price, and name are carried over. Order Form Credit card numbers do not match. Product: LCD TV Quantity: 1 Unit Price: 456.25 Name: Jason Brown Shipping Address: O Visa O Master Card Credit Card: O American Express O Discover Credit Card Number: Repeat Credit Card Number: Submit Order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
