-
Notifications
You must be signed in to change notification settings - Fork 3
/
add_product.php
93 lines (66 loc) · 1.66 KB
/
add_product.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
include 'connection.php';
// include 'Vars.php';
?>
<!DOCTYPE html>
<html>
<head>
<?php
include 'common/head.php';
?>
<link rel="stylesheet" type="text/css" href="Style/login.css">
</head>
<style type="text/css">
</style>
<style>
.error {color: #FF0000;}
</style>
<body>
<?php
include 'common/header.php';
?>
<section id="main-content">
<div class="box">
<h2>Add Product</h2>
<form enctype="multipart/form-data" method="POST" action="add_product_.php" autocomplete="off" >
<div class="inputbox">
<input type="text" name="name" required />
<label>Name</lable>
</div>
<div class="inputbox">
<input type="text" name="rate" required />
<label>Rate</lable>
</div>
<div class="inputbox">
<input type="text" name="description" required />
<label>Description</lable>
</div>
<div class="inputbox">
<input type="text" name="category" required />
<label>Category</lable>
</div>
<div class="inputbox">
<input type="file" name="pic_cat" required />
<label>Image</lable>
</div>
<center>
<input type="submit" name="submit" value="Submit">
</center>
</form>
<br>
<center>
<a href="index.php"><button> Go Back </button> </a>
</center>
</div>
</section>
<?php
include 'common/footer.php';
?>
<!-- My Scripts -->
<!-- <script src="Javascript/category.js"></script> -->
<script type="text/javascript">
$(document).ready(function () {
});
</script>
</body>
</html>