forked from derbear/bellbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequestBook.php
46 lines (45 loc) · 1.55 KB
/
requestBook.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<? require("util/header.php");
if(isset($_POST['request'])) {
$request=true;
} else {
$request=false;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Request a book</title> <?php $pagetitle = 'Request book'; ?>
</head>
<body>
<? print_header() ?>
<div id="content-title"><h2>Request a book</h2></div>
<p>Note: Enter the ISBN <strong>without</strong> the dashes.</p>
<form action="requestBook.php" method="post">
<table>
<tr>
<td><label for="isbn"> ISBN: </label></td>
<td><input type="text" name="isbn" /></td>
</tr>
<tr>
<td><label for="price"> Asking price (optional): </label></td>
<td><input type="text" name="price" /></td>
</tr>
<tr>
<td><label for="descr"> Description: </label></td>
<td><textarea rows="5" cols ="20" name="descr"></textarea> </td>
</tr>
<input type="hidden" name="request" value="1" />
</table>
<input type="Submit" value="Post for sale" />
</form>
<? require("util/footer.php"); ?>
</body>
</html>
<!--
Authors: Derek Leung
Project BellBook - 1.0
Bellarmine College Preparatory, 2011
barely modified by Ben Chan
-->