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 @@