-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_item.php
52 lines (43 loc) · 1.38 KB
/
add_item.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
<?php
/*
* File: add_item.php
* File Created: Monday, 30th September 2019
* Author: Syed Faraz Abrar
* -----
* Last Modified: Monday, 14th October 2019
* Modified By: Syed Faraz Abrar
* -----
* Purpose: Lets a user put up items for sale.
*/
require_once("db.php");
require_once("includes/check_session.php");
include("includes/handle_add_item.php");
?>
<!DOCTYPE html>
<html>
<head>
<?php include_once("includes/includes.php"); ?>
</head>
<body>
<?php include('includes/header.php'); ?>
<!-- Simple form to let a user put up an item for sale -->
<div class="container">
<hr>
<form class="form-signin" action="" method="POST">
<div class="form-label-group">
<input type="text" id="itemName" class="form-control" placeholder="Item name" name="itemName" required autofocus>
<label for="itemName">Item name</label>
</div>
<div class="form-label-group">
<input type="text" id="description" class="form-control" placeholder="Description" name="description" required>
<label for="description">Item description</label>
</div>
<div class="form-label-group">
<input type="number" id="price" class="form-control" placeholder="Price" name="price" required>
<label for="price">Price</label>
</div>
<button class="btn btn-lg btn-primary btn-block text-uppercase" name="add" value="addItem" type="submit">Add Item</button>
</form>
</div>
</body>
</html>