add php upload form
This commit is contained in:
1 parent
195e88a079
commit
368072837e
2 files changed
+76
-12
No files matched your search
Regular → Executable
+8
-12
@@ -1,20 +1,12 @@
|
||||
<div class="envArquivo" style="height: 100vh; width: 100vw;">
|
||||
<h1> Enviar Aula</h1>
|
||||
|
||||
<form action="submit_class.php" method="post">
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
<!-- Nome da Aula -->
|
||||
<div class="field">
|
||||
<label class="label" for="class_name">Nome da Aula</label>
|
||||
<div class="control">
|
||||
<input class="input" type="text" id="class_name" name="class_name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Autor -->
|
||||
<div class="field">
|
||||
<label class="label" for="author">Autor</label>
|
||||
<div class="control">
|
||||
<input class="input" type="text" id="author" name="author" required>
|
||||
<input class="input" type="text" id="videoTitle" name="videoTitle" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -48,10 +40,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<input type="file" name="fileToUpload" id="fileToUpload">
|
||||
</div>
|
||||
|
||||
<!-- Botão de Enviar -->
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<button class="button is-primary" type="submit">Enviar</button>
|
||||
<button class="button is-primary" name="submit" type="submit">Enviar</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -70,4 +66,4 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
Reference in new issue
Block a user