/
createProductForm.php
70 lines (66 loc) · 2.58 KB
/
createProductForm.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<?php require 'utils/styles.php'; ?>
<?php require 'utils/scripts.php'; ?>
</head>
<body>
<?php require 'utils/header.php'; ?>
<?php require 'utils/toolbar.php'; ?>
<h2>Login Form</h2>
<?php
if (isset($errorMessage))
echo "<p>$errorMessage</p>";
?>
<form action="CreateProduct.php"
method="POST">
<table border="0">
<tbody>
<tbody>
<tr>
<td>Author Name</td>
<td>
<input type="text" name="AuthorName" value="" />
<span id="AuthorName" class="error">
<?php echoValue($errors, 'AuthorName'); ?>
</span>
</td>
</tr>
<tr>
<tr>
<td>Book Title</td>
<td>
<input type="text" name="BookName" value="" />
<span id="AuthorName" class="error">
<?php echoValue($errors, 'BookName'); ?>
</span>
</td>
</tr>
<tr>
<tr>
<td>Cost Price</td>
<td>
<input type="number" min="1" name="CostPrice" value="" />
<span id="CostPrice" class="error">
<?php echoValue($errors, 'CostPrice'); ?>
</span>
</td>
</tr>
<tr>
<td>Sell Price</td>
<td>
<input type="number" min="1" name="sellPrice" value="" />
<span id="CostPrice" class="error">
<?php echoValue($errors, 'sellPrice'); ?>
</span>
</td>
</tr>
</tbody>
</table>
</form>
<p><a href="register_form.php">Register</a></p>
<?php require 'utils/footer.php'; ?>
</body>
</html>