Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 2.12 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Unit 4 Project</title>
  6. <link href="Main.css" rel="stylesheet" type="text/css" />
  7. </head>
  8.  
  9. <body>
  10. <div align="center"><img src="AnnMagee_logotype.jpg" width="760" height="186" alt="Logo" /></div>
  11. <br />
  12.  
  13. <div align="center">
  14. <table border="1">
  15. <tr>
  16. <td valign="top">
  17. <table align="center" border="0" width="350">
  18. <form action="addcontacts.php" method="get" name="addcontact">
  19. <tr><td colspan="2" align="center"><h3>Add a Contact</h3></td></tr>
  20. <tr><td><label>First Name</label></td><td><input type="text" name="fname" /></td></tr>
  21. <tr><td><label>Last Name</label></td><td><input type="text" name="lname" /></td></tr>
  22. <tr><td><label>Street</label></td><td><input type="text" name="street" /></td></tr>
  23. <tr><td><label>City</label></td><td><input type="text" name="city" /></td></tr>
  24. <tr><td><label>State</label></td><td><input type="text" name="state" /></td></tr>
  25. <tr><td><label>Zip</label></td><td><input type="text" name="zip" /></td></tr>
  26. <tr><td><label>Area Code</label></td><td><input type="text" name="areacode" /></td></tr>
  27. <tr><td><label>Phone</label></td><td><input type="text" name="phone" /></td></tr>
  28. <tr><td colspan="2" align="center"><input type="submit" name="add" value="Add Contact" /></td></tr>
  29. </form>
  30. </table>
  31. <br />
  32. <tr><td valign="top">
  33. <table border="0" align="center">
  34. <?php
  35.         if (!file_exists("contactlist.txt"))
  36.     {
  37.         echo "<div align=center>The file requested does not exist. Please add contacts and try again.<br />";
  38.         echo "<p>Click <a href='contacts.html'>here</a> to return to the form.</div></p>";
  39.     }
  40. ?>
  41. <form action="showcontacts.php" method="get" name="showcontacts">
  42. <tr><td align="center" colspan="2"><input type="submit" name="show" value="Show Contacts" /></td></tr>
  43. </form>
  44. </table>
  45. </td></tr>
  46. </table>
  47. </div>
  48.  
  49. <p align="center"><img src="copyright.jpg" width="760" height="50" alt="Copyright" /></p>
  50. </body>
  51. </html>