-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuploadfile.php
More file actions
68 lines (68 loc) · 1.87 KB
/
uploadfile.php
File metadata and controls
68 lines (68 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>Video Tutorials - Upload</title>
</head>
<body >
<?php
session_start();
if(!isset($_SESSION['username']))
{
session_destroy();
header("location: home.php");
}
?>
<style>
.btn{
border:1px solid white;
color:black;
padding:3px;
background: greenyellow;
border-radius: 5px;
}
.hr{
border-top:1px solid yellow;
border-bottom:none;
}
.btn:hover{
border:1px solid white;
color:white;
background: lime;
}
body{
background: rgba(21,37,43,1);
}
h1{
color: white;
text-shadow: 3px 0px 4px blue;
}
h2{
color: white;
text-shadow: 1px 2px #121212;
}
</style>
<div style="width:100%;padding:1px;background:slateblue;border-radius: 10px 10px 10px;text-align:center"><h1><big>VIDEO TUTORIALS</big></h1><h2>Upload portal</h2>
<hr>
<div style="text-align:right;padding:5px">
<?php
echo "Logged in: ".$_SESSION['username'];
?>
  <a href='logout.php'><button type='button' class='btn'>Logout</button></a>
  <a href='home.php'><button type='button' class='btn'>Home</button></a>
</div>
</div>
<br>
<div style="width:50%;margin:0 auto;padding: 5px;box-shadow:0px 0px 2px 1px yellow;color:white;background:rgba(64,79,81,1)">
<form action="savelocation.php" method="post" enctype="multipart/form-data">
<h3 align="center">UPLOAD FORM</h3><hr class='hr'>
Choose video file:
<input type="file" name="file0" id="file0" required><br><br>
Enter name of video:
<input type="text" name="vidname" id="vidname" required><br><br>
Enter hyphen separated keywords:
<textarea name="keywords" placeholder="Eg. keyword1-some other keyword-another keyword-keyword2" required></textarea><br><br>
<div style="text-align:center"><button class="btn"type="submit" value="Upload Video" name="submit">Upload</button></span>
</form>
</div>
</body>
</html>