Answered step by step
Verified Expert Solution
Link Copied!
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.


 

  1. Change the file name for index.html to index.php
  2. 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.
  3. Display error messages if the Product Description, List Price and Discount Percent fields are empty after the user submits the form. (1)
  4. Display an error message if the List Price or Discount Percent data entered is not a number after the user submits the form.
  5. Display an error message if the List Price or Discount Percent data entered is less than zero after the user submits the form.
  6. If an error message is displayed, take the user back to the index.php page.
  7. 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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students explore these related Databases questions