Question: Homework 2 Quote Web Server-Side Description For this assignment we will create a simple web application. The user will enter the sales price and discount

Homework 2 Quote Web Server-Side Description For this assignment we will create a simple web application. The user will enter the sales price and discount percent, and the application will calculate and display the discount amount and total price. The Quotation page (index.php) The Confirmation page (confirm.php) 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. 9. Make sure you put a comment at the top of the code file which contains your name and the assignment. Documentation You will create a document (.docx, .rtf, .pdf) which contains the following: Your name and assignment. A screenshot of your form running with at least three test cases. Be sure to test the validation of the data. Your document should also contain screenshots of your validated HTML and CSS code Links are on Canvas. You will need to include your responses to the following questions be detailed in your responses. o Explain loose typing. What are the benefits and drawbacks of loose typing? o What is a PostBack? o Explain in detail the php webpage lifecycle. o Explain the difference between client-side and server-side programming.

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!