-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploadPage.php
70 lines (54 loc) · 1.93 KB
/
uploadPage.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
require 'generalFunctions.php';
?>
<!DOCTYPE HTML>
<html>
<head>
<?php include("head.html"); ?>
<title>Upload Your Song(s)</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/basic.css">
</head>
<body>
<?php include("header.php"); ?>
<?php include("noscript.html"); ?>
<script>
function newRow(){
var fileRow = document.getElementById("file-upload-rows");
var div = document.createElement("div");
div.innerHTML = '<br><label> Title: <input type="text" name="titles[]"/></label><label> Tags: <input type="text" name="tags[]" /></label><label><input type="file" name="files[]" /></label>';
fileRow.appendChild(div);
};
</script>
<div class="content-center" style="margin-top: 10%;">
<h3>Upload your song<h3>
<form action="uploadTestHandler.php" method="post" id="form1" enctype="multipart/form-data">
<fieldset id="file-upload-rows" action="uploadTestHandler.php" method="post" form="form1">
<div class = "file-row">
<label> Artist:
<input type="text" name="artist">
</label>
<br>
<label> Title:
<input type="text" name="titles[]"/>
</label>
<br>
<label> Tags:
<input type="text" name="tags[]"/>
</label>
<br>
<label>
<input name="upload[]" type="file" multiple="multiple" />
</label>
<br>
</div>
<input type="submit" value="Submit"/>
</form>
</div>
<br>
</fieldset>
</body>
</html>