Creating a Menu

Your online address book will contain several actions, so it makes sense to create a menu for your links. Listing 18.1 creates a menu for all the scripts you will create in this section, called mymenu.php.

Listing 18.1. Address Book Menu
 1: <html>
 2: <head>
 3: <title>My Address Book</title>
 4: </head>
 5: <body>
 6: <h1>My Address Book</h1>
 7:
 8: <P><strong>Management</strong>
 9: <ul>
10: <li><a href="addentry.php">Add an Entry</a>
11: <li><a href="delentry.php">Delete an Entry</a>
12: </ul>
13:
14: <P><strong>Viewing</strong>
15: <ul>
16: <li><a href="selentry.php">Select a Record</a>
17: </ul>
18: </body>
19: </html>

Figure 18.1 shows the output of Listing 18.1. You'll tackle each of these items in order, starting with “Add ...

Get Sams Teach Yourself PHP, MySQL® and Apache All in One 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.