
Untitled
By: a guest on
May 11th, 2012 | syntax:
None | size: 2.12 KB | hits: 19 | expires: Never
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unit 4 Project</title>
<link href="Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center"><img src="AnnMagee_logotype.jpg" width="760" height="186" alt="Logo" /></div>
<br />
<div align="center">
<table border="1">
<tr>
<td valign="top">
<table align="center" border="0" width="350">
<form action="addcontacts.php" method="get" name="addcontact">
<tr><td colspan="2" align="center"><h3>Add a Contact</h3></td></tr>
<tr><td><label>First Name</label></td><td><input type="text" name="fname" /></td></tr>
<tr><td><label>Last Name</label></td><td><input type="text" name="lname" /></td></tr>
<tr><td><label>Street</label></td><td><input type="text" name="street" /></td></tr>
<tr><td><label>City</label></td><td><input type="text" name="city" /></td></tr>
<tr><td><label>State</label></td><td><input type="text" name="state" /></td></tr>
<tr><td><label>Zip</label></td><td><input type="text" name="zip" /></td></tr>
<tr><td><label>Area Code</label></td><td><input type="text" name="areacode" /></td></tr>
<tr><td><label>Phone</label></td><td><input type="text" name="phone" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" name="add" value="Add Contact" /></td></tr>
</form>
</table>
<br />
<tr><td valign="top">
<table border="0" align="center">
<?php
if (!file_exists("contactlist.txt"))
{
echo "<div align=center>The file requested does not exist. Please add contacts and try again.<br />";
echo "<p>Click <a href='contacts.html'>here</a> to return to the form.</div></p>";
}
?>
<form action="showcontacts.php" method="get" name="showcontacts">
<tr><td align="center" colspan="2"><input type="submit" name="show" value="Show Contacts" /></td></tr>
</form>
</table>
</td></tr>
</table>
</div>
<p align="center"><img src="copyright.jpg" width="760" height="50" alt="Copyright" /></p>
</body>
</html>