Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Change the file name for index.html to index.php Add PHP code to index.php to display an error message named $error_message just below the page heading.
- Change the file name for index.html to index.php
- Add PHP code to index.php to display an error message named $error_message just below the page heading. Be sure to check that $error_message is not an empty value. Format it to be bold, red text.
- Display error messages if the Product Description, List Price and Discount Percent fields are empty after the user submits the form. (1)
- Display an error message if the List Price or Discount Percent data entered is not a number after the user submits the form.
- Display an error message if the List Price or Discount Percent data entered is less than zero after the user submits the form.
- If an error message is displayed, take the user back to the index.php page.
- Add a sales tax calculation of 8% based on the discounted price. Then, display the sales tax rate and the calculated sales tax amount after the discounted price.
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