-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct.php
More file actions
37 lines (27 loc) · 846 Bytes
/
product.php
File metadata and controls
37 lines (27 loc) · 846 Bytes
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
<?php
include 'header.php'
?>
<link rel="stylesheet" type="text/css" href="style1.css">
<br><br>
<section class="center">
<?php
if (isset($_SESSION['username'])){
echo "<h1>Add New Product</h1>";
echo "
<form class='product' action='inc/product.inc.php' method='POST' enctype='multipart/form-data'>
<input type='text' name='product' placeholder='Product Name'><br>
<input type='text' name='price' placeholder='Price'><br>
<input type='text' name='qty' placeholder='QTY'><br>
<textarea rows='4' cols='50' name='details' placeholder='Details'></textarea><br>
<input type='file' name='fileToUpload' id='fileToUpload'>
<button type='submit' id='add'>Add New Product</button>
</form>
";
} else {
echo "You have no permission to open this page!";
}
?>
</section>
<?php
include 'footer.php'
?>