Created
September 23, 2012 21:33
-
-
Save mebrett/3773116 to your computer and use it in GitHub Desktop.
Input form for documents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title>Maury Database: Add Document</title> | |
</head> | |
<body> | |
<h2>Add new documents to Maury database</h2> | |
<form method="post" action="insert_doc.php"> | |
<?php | |
$con = mysql_connect('host', 'user', 'password'); | |
$maury2 = mysql_select_db('maury2', $con); | |
if (!$maury2){ | |
die (mysql_error()); | |
} | |
?> | |
Document Date (format mm/dd/yyyy): <input type="text" name="date" size ="10"/><br /> | |
<br />Sender(s): | |
<select name="senders[]" multiple="yes" size="5"> | |
<option value="empty"> --- </option> | |
<?php | |
$senderQ = "SELECT kp_pers_id, name_full FROM person"; | |
$senderR = mysql_query($senderQ) or die(mysql_error()); | |
while($row = mysql_fetch_assoc($senderR)) { | |
echo "<option value='{$row['kp_pers_id']}'>{$row['name_full']}</option>"; | |
} | |
?> | |
</select><br /> | |
Sender location: <input type="text" name="written" /><br /> | |
<br />Receiver(s):<br /> | |
Receiver location:<input type="text" name="addressed" | |
<br /><input type='submit' value='SUBMIT'/><br /> | |
<br /> | |
Collection information: <input type="text" name="collection" /><br /> | |
Repository: <input type="text" name="repos" /><br /> | |
Repository Location: <input type="text" name="repos_loc" /><br /> | |
<br /> | |
Summary: <input type="text" name="summary" /><br /> | |
Notes: <input type="text" name="notes" /><br /> | |
</form> | |
<p>*required</p> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment