-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (42 loc) · 886 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
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>video upload php and mysql</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
}
input {
font-size: 2rem;
}
a {
text-decoration: none;
color: #006CFF;
font-size: 1.5rem;
}
</style>
</head>
<body>
<a href="view.php">Videos</a>
<?php if (isset($_GET['error'])) { ?>
<p><?=$_GET['error']?></p>
<?php } ?>
<form action="upload.php"
method="post"
enctype="multipart/form-data">
<p>Enter the song name</p1><input type="text"
name="song">
<input type="file"
name="my_video">
<input type="submit"
name="submit"
value="Upload">
</form>
</body>
</html>