Sending form

I would recommend you use, Htmx and avoid yourself a lot of javascript.

Here is a nice introduction to it. Htmx Introduction

Good luck