Question: In this project, you will create header and footer pages that you will add to a Web page with the include statement. 1. Create a
In this project, you will create header and footer pages that you will add to a Web page with the include statement.
1. Create a new document in your text editor and type the declaration, element, document head, and
element. Use the strict DTD and Coast City Computers as the content of the2. Add the following text and elements to the document body:
Memorial Day Sale
- Compaq Presario m2007us Notebook: $799.99
- Epson Stylus CX6600 Color All-In-One Printer, Print/Copy/Scan: $699.99
- Proview Technology Inc. KDS K715s 17-inch LCD Monitor, Silver/Black: $199.99
- Hawking Technology Hi-Speed Wireless-G Cardbus Card: $9.99
-
Add the following PHP code section and include state- ment to the beginning of the document body. This statement includes an external file named inc_header.php at the start of the Web page.
-
Add the following PHP code section and include statement to the end of the document body. This statement includes an external file named inc_footer.php at the end of the Web page.
-
Save the document as CoastCityComputers.php in the Projects directory for Chapter 2.
-
Create a new document in your text editor and add the fol- lowing text and elements:
Coast City Computers
Buy Online or Call 1-800-555-1212
-
Save the document as inc_header.php in the Projects direc- tory for Chapter 2.
120
Reinforcement Exercises
-
Create a new document in your text editor and add the fol- lowing text and elements:
Updated 06 January, 2010 © 2003 by Coast City Computers. src="http://www.w3.org/Icons/valid-xhtml10" alt="student submitted image, transcription available below" height="31" width="88" />
All Rights Reserved. -
Save the document as inc_footer.php in the Projects direc- tory for Chapter 2.
-
Upload the CoastCityComputers.php, inc_header.php, and inc_footer.php files to the server.
-
Open the CoastCityComputers.php file in your Web browser by entering the following URL: http://
/PHP_ Projects/Chapter.02/Projects/CoastCityComputers.php. The contents of the header and footer documents should appear on the Web page.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
