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.



Answer :

The PHP code is given below:

PHP code

if(isset($_REQUEST['login_btn'])){

       $email = filter_var(strtolower($_REQUEST['email']),FILTER_SANITIZE_EMAIL); //strtolower changes email to all lower case

       $password = strip_tags($_REQUEST['password']);

The remaining code is in the file attached.

 

Read more about PHP here:

https://brainly.com/question/27750672

#SPJ1

View image jayilych4real