From 87c4f482589578a3002f262043efc4d0c64f0c79 Mon Sep 17 00:00:00 2001 From: Saahil Date: Fri, 26 Jul 2024 14:38:36 -0400 Subject: [PATCH] fix v-1 to contact --- src/components/ContactPage/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ContactPage/index.tsx b/src/components/ContactPage/index.tsx index 01ef73fe..1462136a 100644 --- a/src/components/ContactPage/index.tsx +++ b/src/components/ContactPage/index.tsx @@ -24,7 +24,8 @@ if(Math.random() > .5) { } else { const form = new FormData(e.target) fetch('/contact_form.php', { - body: form + body: form, + method: "POST" }).then(e => { return e.text() }).then(text => {