Creating a Menu


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

Listing 20.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></p>  9: <ul> 10: <li><a href="addentry.php">Add an Entry</a></li> 11: <li><a href="delentry.php">Delete an Entry</a></li> 12: </ul> 13: 14: <p><strong>Viewing</strong></p> 15: <ul> 16: <li><a href="selentry.php">Select a Record</a></li> 17: </ul> 18: </body> 19: </html>

Figure 20.1 shows the output of Listing 20.1. You'll tackle each of these items in order, starting with "Add an Entry" in the next section.

Figure 20.1. Address book menu.





Sams Teach Yourself PHP, MySQL And Apache All in One
Sams Teach Yourself PHP, MySQL and Apache All in One (3rd Edition)
ISBN: 0672328739
EAN: 2147483647
Year: 2004
Pages: 327

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net