-
Notifications
You must be signed in to change notification settings - Fork 6
/
create.php
executable file
·64 lines (51 loc) · 2.4 KB
/
create.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
<?php
// include script for the database connection
include('server/cruds_create.php');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- link external CSS stylesheet (Bootstrap 3 from www.getbootstrap.com) -->
<link rel="stylesheet" href="css/bootstrap.css">
<title>Add Product</title>
</head>
<body>
<div class="container">
<h1>Add Product</h1>
<br/>
<a href="index.php" class="btn btn-default btn-sm">View Products</a>
<br/>
<br/>
<form class="form-horizontal" role="form" method="post" action="server/cruds_create.php">
<div class="form-group">
<label for="product_name" class="col-sm-2 control-label">Product Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="product_name" name="product_name" placeholder="Product Name" required>
</div>
</div>
<div class="form-group">
<label for="product_price" class="col-sm-2 control-label">Price</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="product_price" name="product_price" placeholder="Price" maxlength="10" required>
</div>
</div>
<div class="form-group">
<label for="product_price" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea class="form-control" id="product_description" name="product_description" placeholder="Product description" rows="5"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-success">Add Product</button>
<a href="index.php" class="btn btn-danger">Cancel</a>
<button type="reset" class="btn btn-default">Clear</button>
</div>
</div>
</form>
</div>
</body>
</html>