Question: In this exercise, you will create a header and footer pages that you will add to a Web page with the include() statement. 1. Create
In this exercise, you will create a header and footer pages that you will add to a Web page with the include() statement.
1. Create a new PHP file in your IDE called seusssale.php.
2. Enter the required HTML tags : , element, document
, and element.2. Use Dr. Seuss Everything Store as the content of the
3. Add the following text and elements to the document body:
Raining Day Sale
- Green Eggs and Ham: $12.99
- The Grinch: $754.99
- Cat in the Hat: $199.99
- The Lorax: $99.99
4. Add the following PHP code section and include statement to the beginning of the PHP file
5. Add the following PHP code section and include statement to the end of the PHP
element. This statement includes an external file named inc_footer.php at the end of the Web page.6. Save the PHP file as seusssale.php
7. Create a new document in your text editor and add the following text and elements:
Dr Suess Sale | Call 1-800-414-7898 for Details |
8. Save the document as inc_header.php
8. Create a new document in your IDE and add the following text and elements:
| Updated January 21, 2018 | © 2018 by Dr. Suess Everything Store |
| All Rights Reserved. |
9. Save the document as inc_footer.php
10. Upload the storesale.php, inc_header.php, and inc_footer.php files to the server.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
