|
General Clean Up resets the |
Person Table |
Book Table |
Documentation |
||
|
Note - Create, Drop and Clean Up would be
hidden on a real life system. |
|||||
Code Listing : personInsertForm.php |
<html>
<head>
<title>Insert Using a Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php include "nav.php"; ?>
<h2>Insert New Person</h2>
<form name="form1" method="post" action="personInsertFormDo.php">
<table border="1" cellpadding="4" cellspacing="0">
<tr>
<td><div align="right">Title</div></td>
<td> <input name="title" type="text" id="title"></td>
</tr>
<tr>
<td><div align="right">First Name</div></td>
<td> <input name="first_name" type="text" id="first_name"></td>
</tr>
<tr>
<td><div align="right">Last Name</div></td>
<td><input name="last_name" type="text" id="last_name"></td>
</tr>
<tr>
<td><div align="right">Date of Birth (yyyy-mm-dd)</div></td>
<td><input name="date_of_birth" type="text" id="date_of_birth"></td>
</tr>
<tr>
<td colspan="2"><div align="right">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
<?php
include "dump.php";
dump_page(basename($_SERVER[SCRIPT_FILENAME])); // Display the code of this page
?>
</body>
</html>
|