mirror of
https://github.com/ClaytonWWilson/FightHub.git
synced 2025-12-15 23:18:47 +00:00
work on the upload page
This commit is contained in:
parent
4eeda2e474
commit
02c5c43428
6
scripts/main.js
Normal file
6
scripts/main.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
// Validates the data inputs on the upload form
|
||||||
|
function validateUpload() {
|
||||||
|
console.log("Validated!");
|
||||||
|
document.getElementById("upload-form").submit();
|
||||||
|
}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>FightHub - Upload</title>
|
<title>FightHub - Upload</title>
|
||||||
<link rel="stylesheet" href="main.css">
|
<link rel="stylesheet" href="main.css">
|
||||||
|
<script src="scripts/main.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -14,7 +15,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- submit.php will read the variables from the url and add it to the database -->
|
<!-- submit.php will read the variables from the url and add it to the database -->
|
||||||
<form class="upload-form" onsubmit="validateUpload()">
|
<form class="upload-form" id="upload-form" action="submit.php">
|
||||||
|
|
||||||
<h3>Youtube URL *</h3>
|
<h3>Youtube URL *</h3>
|
||||||
<input type="text" name="url" id="url">
|
<input type="text" name="url" id="url">
|
||||||
@ -52,7 +53,7 @@
|
|||||||
<input type="text" name="stage">
|
<input type="text" name="stage">
|
||||||
|
|
||||||
|
|
||||||
<input type="submit" name="submit" value="Submit">
|
<input type="button" name="submit_button" value="Submit" onclick="validateUpload()">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user