Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Convert the attached chapter08-project01.html into a PHP file that looks similar to the one shown below.

image text in transcribed

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.

please fulfill the above instructions in php file which i am pasting below and also write the php code where ever its written as write php code

chapter08-project01.html

*** 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 ***

Convert the attached chapter08-project01.html into a PHP file that looks similar to the one showrn below. Login Display the values of the Semai1 and Spassword variables Write loop to output the coptions elements Login Use an if statement to display error message if Senail isempty Logi Do a similar check for the password

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions