-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew-media.php
62 lines (49 loc) · 1.65 KB
/
new-media.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
<?php require_once('connect.php'); check_account();?>
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nuovo contenuto</title>
<style>
label {
display: inline-block;
font-size: large;
}
* {
font-family: Arial, Helvetica, sans-serif;
}
form {
display: flex;
flex-direction: column;
text-align: start;
}
input,
textarea {
padding: 10px;
margin-bottom: 20px;
font-size: 15px;
}
</style>
</head>
<body>
<?php include('header.php'); ?>
<div style="display: flex; justify-content:center;">
<fieldset style="min-width: 400px">
<legend>Nuovo materiale</legend>
<form action="create-media.php" method="POST" enctype="multipart/form-data">
<label for="titolo">Titolo:</label>
<input type="text" id="titolo" name="titolo" required>
<label for="descrizione">Descrizione:</label>
<textarea id="descrizione" name="descrizione" required style="height: 50px"></textarea>
<label for="materia">Materia:</label>
<input type="text" id="materia" name="materia" required>
<label for="file">Carica un file:</label>
<input type="file" id="file" name="file" required>
<input type="submit" value="Carica">
</form>
</fieldset>
</div>
</body>
</html>