fixed paths to submit and load-responses in main.js
This commit is contained in:
parent
f7568211c0
commit
c275e010eb
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue