Im trying to set up a function that simply takes the form data and submits it to the d1 database tha
Im trying to set up a function that simply takes the form data and submits it to the d1 database thats binded to the page. this is the form element:
<form class="form" data-form="" action="functions/formSub" method="POST">
when i submit the form it takes me to the action address instead of just running the function itself. ive added event.preventDefault(); to the handle but that doesnt seem to help. can anyone give me a hand submitting form data to a binded d1 DB via a function?
<form class="form" data-form="" action="functions/formSub" method="POST">
when i submit the form it takes me to the action address instead of just running the function itself. ive added event.preventDefault(); to the handle but that doesnt seem to help. can anyone give me a hand submitting form data to a binded d1 DB via a function?



