Move to another webpage

Hello everyone i want to move to the another webpage on submission of a form i moved to the other webpage successfully but i do not receive the email if i do not add the code to move to the other webpage than my email is send successfully can anyone help me with this i want to move the other webpage and my form should also be submitted here is the codepen link" https://codepen.io/Talha-Mustafa/pen/LYagXQJ
8 Replies
ἔρως
ἔρως9mo ago
you're redirecting the browser, so, the submit may or may not happen
Moni
MoniOP9mo ago
so what should i do
ἔρως
ἔρως9mo ago
first, send the form submission, then redirect based on the server answer
Moni
MoniOP9mo ago
here is the code pen link" https://codepen.io/Talha-Mustafa/pen/LYagXQJ now i am sumbitting my form first but it is showing me error check the attached image
No description
ἔρως
ἔρως9mo ago
No description
ἔρως
ἔρως9mo ago
this expects you to send a post request to it you can't stop the normal submit basically, delete the javascript and it will work
Moni
MoniOP9mo ago
if i will delete the js how i will redirected to the other page and also i want to prevent event default
ἔρως
ἔρως9mo ago
yes, it will go to the other page they don't seem to expose an api for you to use you need to either do this, use react or their "form button" thingy
Want results from more Discord servers?
Add your server