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 the element. <p>2. Add the following text and elements to the document body:</p> <pre> <h2>Memorial Day Sale</h2> </pre><ul> <li>Compaq Presario m2007us Notebook: <strong>$799.99</strong></li> <li>Epson Stylus CX6600 Color All-In-One Printer, Print/Copy/Scan: <strong>$699.99</strong></li> <li>Proview Technology Inc. KDS K715s 17-inch LCD Monitor, Silver/Black: <strong>$199.99</strong></li> <li>Hawking Technology Hi-Speed Wireless-G Cardbus Card: <strong>$9.99</strong></li> </ul> <ol start="2"> <li> <p>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.</p> <pre> <?php include("inc_header.php"); ?> </pre> </li> <li> <p>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.</p> <pre> <?php include("inc_footer.php"); ?> </pre> </li> <li> <p>Save the document as CoastCityComputers.php in the Projects directory for Chapter 2.</p> </li> <li> <p>Create a new document in your text editor and add the fol- lowing text and elements:</p> <pre> </pre><table width="100%" style="border: 0"> <tr><td><h1>Coast City Computers</h1></td> <td style="text-align: right"><strong>Buy Online or Call 1-800-555-1212</strong></td></tr></table><hr> </li> <li> <p>Save the document as inc_header.php in the Projects direc- tory for Chapter 2.</p> </li> </ol> <p>120</p> <p>Reinforcement Exercises</p> <ol start="8"> <li> <p>Create a new document in your text editor and add the fol- lowing text and elements:</p> <pre> <hr> </pre><table width="100%" style="border: 0"> <tr><td><strong>Updated</strong> 06 January, 2010</td> <td style="text-align: right">© 2003 by Coast City Computers.</td> </tr> <tr><td> <pre> <pre> src="http://www.w3.org/Icons/valid-xhtml10" alt="student submitted image, transcription available below" height="31" width="88" /> </pre> <pre> </pre></pre></td> <td style="text-align: right; vertical-align: top">All Rights Reserved.</td></tr> </table> </li> <li> <p>Save the document as inc_footer.php in the Projects direc- tory for Chapter 2.</p> </li> <li> <p>Upload the CoastCityComputers.php, inc_header.php, and inc_footer.php files to the server.</p> </li> <li> <p>Open the CoastCityComputers.php file in your Web browser by entering the following URL: http://<yourserver>/PHP_ Projects/Chapter.02/Projects/CoastCityComputers.php. The contents of the header and footer documents should appear on the Web page.</yourserver></p> </li> </ol>

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!