-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddphoto.php
55 lines (54 loc) · 1.75 KB
/
addphoto.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<?php
include_once "headerfiles.html";
?>
</head>
<body>
<?php
include_once 'adminheader.php';
$pid =$_GET["productid"];
//echo $pid;
?>
<div class="container">
<div class="row">
<h1>Add Photo</h1>
</div>
<form action="insertphoto.php" method="post" enctype="multipart/form-data" id="form1">
<div class="row input-container">
<div class="col-sm-5">
<label for="photo">Photo</label>
</div>
<div class="col-sm-5 ml-5">
<input type="file" data-rule-extension="jpg|png|gif" class="input-field" data-rule-required="true" name="photo" id="photo">
</div>
</div>
<div class="row input-container">
<div class="col-sm-5">
<label for="caption">Caption</label>
</div>
<div class="col-sm-5 ml-5">
<input type="text" class="input-field" data-rule-required="true" name="caption" id="caption">
<input type="hidden" class="input-field" data-rule-required="true" value="<?php echo $pid;?>" name="productid" id="productid">
</div>
</div>
<div class="row input-container">
<div class="col-sm-5"></div>
<div class="col-sm-5 ml-5">
<input type="submit" value="Add Photo" class="btn btn-success input-field">
</div>
</div>
</form>
<?php
include_once 'footer.php';
?>
</div>
</body>
</html>
<?php