Modifying the Template

Since all of the pages in this and the following chapter will be part of the same Web application, it’ll be worthwhile to use a common template system. Instead of creating a new template from scratch, the layout from Chapter 3, “Creating Dynamic Web Sites,” will be used again, with only a minor modification to the header file’s navigation links.

To make the header file

1.
Open header.html (Script 3.2) in your text editor.
2.
Change the list of links to read (Script 7.1)
<li class="navtop"><a href="index. → php" title="Go to the Home → Page">Home</a></li> <li><a href="register.php" title= → "Register">Register</a></li> <li><a href="view_users.php" → title="View the Existing → Users">View Users</a></li> <li><a href="password.php" ...

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.