Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Homework 2 - Quote Web Server-Side Description For this assignment we will create a simple web application. Consider the example pages calculate and display the
Homework 2 - Quote Web Server-Side Description For this assignment we will create a simple web application. Consider the example pages calculate and display the discount amount and total price. The Quotation page (index.php) Price quotation Sales price 150 Discount percent25 Discount amount $37.50 Total price $112.50 Calculate Confirm Enter price and discount amount and click Calculate The Confirmation page (confirm.php) Quotation confirmation Sales price $150.00 $37.50 Discount amount Total price $112.50 Send confirmation to Name Grace Hopper Email address grace@yahoo.com Send QuotationReturn Click the Send Quotation button to send the quotation via email. If the user entry is invalid, an error message should be displayed to the user Your pages do not have to look exactly as those shown above but should have the same controls and appropriate styles. Specifications You will need to complete the following: 1. When the user clicks Calculate on index.php the page should validate the data and if it is valid, show the results of the calculation. 2. If the user clicks the confirm button, the page should be validated and transfer the user to confirm.php and display the results. 3. Use PHP to validate the data (not JavaScript) 4. Entry should be numeric and greater-than (>) zero (0.0) 5. All error message should be displayed to the right of the textbox on which the error occurred 6. On the confirm.php page, the send quotation button does not perform any action 7. The return button should return the user back to index.php 8. If the user hits the confirm.php page without any data from index.php, the user should be redirected back to index.php Make sure you put a comment at the top of the code file which contains your name and the assignment. 9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started