-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew-image.php
More file actions
52 lines (43 loc) · 1.82 KB
/
new-image.php
File metadata and controls
52 lines (43 loc) · 1.82 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ADD Gallery</title>
<!-- Google Web Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins" rel="stylesheet" />
<!-- Favicon -->
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<!-- Icon Font Stylesheet -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css"
integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<!-- Template Stylesheet -->
<link href="css/mainStyle.css?<?php echo time(); ?>" rel="stylesheet" />
</head>
<body>
<div id="form">
<form action="php/addImg.php" method="post" enctype="multipart/form-data">
<h1 class="sub-title">Add Gallery</h1>
<?php if(isset($_GET['error'])) {?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<?php if(isset($_GET['success'])) {?>
<p class="success"><?php echo $_GET['success']; ?></p>
<?php } ?>
<input type="text" name="catg" placeholder="Category" />
<input type="file" name="imgUrl" accept=".jpg, .jpeg, .png" id="file-upload" class="hidden-input" />
<label for="file-upload" class="upload-button rounded-0">
<span><i class="fa-solid fa-cloud-arrow-up"></i> Upload File</span>
</label>
<button type="submit" class="btn submit-btn">Add</button>
</form>
</div>
</body>
</html>