From c275e010eb0195a0b4be074be6410e87b5faefd5 Mon Sep 17 00:00:00 2001 From: overplayed <47672088+overplayed@users.noreply.github.com> Date: Sun, 16 Mar 2025 00:37:45 -0400 Subject: [PATCH] fixed paths to submit and load-responses in main.js --- assets/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 679217a..fe901f1 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,6 +1,6 @@ document.addEventListener("DOMContentLoaded", function () { // 🚀 Automatically load existing responses if available - fetch("../../load-responses.php") + fetch("../load-responses.php") .then(response => response.json()) .then(data => prepopulateForm(data)) .catch(error => console.error("Failed to load form responses:", error)); @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () { const formData = new FormData(this); - fetch("../../submit.php", { + fetch("../submit.php", { method: "POST", body: formData })