From 02c5c434283b78427c5dd5b253d25dca5438efdc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 20 Apr 2019 15:17:00 -0400 Subject: [PATCH] work on the upload page --- scripts/main.js | 6 ++++++ upload.php | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 scripts/main.js diff --git a/scripts/main.js b/scripts/main.js new file mode 100644 index 0000000..03a897d --- /dev/null +++ b/scripts/main.js @@ -0,0 +1,6 @@ + +// Validates the data inputs on the upload form +function validateUpload() { + console.log("Validated!"); + document.getElementById("upload-form").submit(); +} \ No newline at end of file diff --git a/upload.php b/upload.php index 58bf48f..81324b0 100644 --- a/upload.php +++ b/upload.php @@ -2,6 +2,7 @@ FightHub - Upload + @@ -14,7 +15,7 @@ -
+

Youtube URL *

@@ -52,7 +53,7 @@ - +