-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (40 loc) · 827 Bytes
/
index.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
<?php
//include form submission script
include 'upload.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Notices Upload Using PHP</title>
<style>
body {
background-color: linen;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
}
</style>
</head>
<body>
<img src="background.jpg">
<h1> Upload Notices </h1>
<?php
if(!empty($statusMsg)){ ?>
<p class="status
<?php
echo $status;
?>">
<?php
echo $statusMsg;
?>
</p>
<?php } ?>
<form action="upload.php" method="post" enctype="multipart/form-data">
<label>Select Notice:</label>
<input type="file" name="image">
<input type="submit" name="submit" value="Upload">
</form>
</body>
</html>