Creating the Template

The first step in developing this application is to create a template system to handle the HTML design. The end result (Figure 12.1) will use tables and some Cascading Style Sheets (CSS).

Figure 12.1. The default layout used by the application in this chapter.

To make header.html

Create a new HTML document in your text editor (Script 12.1).
<!DOCTYPE html PUBLIC "-//W3C//DTD → XHTML 1.0 Transitional//EN" " → xhtml1-transitional.dtd"> <html xmlns=" → xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" → content="text/html; charset= → iso-8859-1" ...

Get PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.