Question: Convert the attached chapter08-project01.html into a PHP file that looks similar to the one shown below. Instructions 1. You have been provided with an HTML

Convert the attached chapter08-project01.html into a PHP file that looks similar to the one shown below. Instructions 1. You have been provided with an HTML file (chapter08-project01.html) that includes all the necessary markup. Save this file as chapter08-project01.php. 2. Use the PHP include() function to include the file book-data.php. This file sets the values of two variables: $email and $password. 3. Use a for loop to output the elements. 4. Use an if...else statement to display an error message if the $email variable is empty. 5. Do the same thing as Step 4 for the $password variable. MCIS 5413 Web Programming Fall 2017 Test 1. Test the page. Remember that you cannot simply open a local PHP page in the browser using its open command. Instead you must have the browser request the page from a server. If you are using a local server such as XAMMP, the file must exist within the htdocs folder of the server, and then the request will be localhost/some-path/chapter08project01.php. 2. Verify that the logic works by editing the values of the two variables in the book-data.php file. All the required files are attached. A sample chapter08-project01.php is also provided for your convenience with comments on where to insert your PHP code. There comments are in between XAMMP could you please give me how to connect to htdocs and reuest this file to called ----- comments on how to do this

*** Write PHP code to include 'book-data.php' ***

*** Write PHP code (if-else statements) to set error messages to appropriate variables if $email and $password variables are empty ***

Chapter 8

Login

*** Write PHP code to set the value of email field below ***

*** Write PHP code to display an error message if email variable is empty below ***

*** Write PHP code to set the value of password field below ***

*** Write PHP code to display an error message if password variable is empty below ***

'book-data.php'

$email = "randy@abc.net"; $password = "zxzx";

?>

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!