I am experiencing an issue with submitting a form on my website. When I fill out the form and click the submit button, nothing happens and I do not see any network requests in the browser console.
The form is supposed to submit to the URL https://example.com/, but it seems that the form is not able to send a POST request to this URL.
I have checked the JavaScript console and there are no error messages, and I have also verified that the form fields have the correct names and that the submit button has the correct type.
I am using a shared hosting plan with PHP 7.3.33, and my website was built with WordPress. Recently, I decided to change the design of my website and I did it with Node.js v18.14.0.
I followed the advice of technical support, and I deployed the app to the server. using the application manager.
Now, the technical support answered me this: "What I can confirm is that it's making a successful POST request to "/" (e.g the same page), however there are no errors".
Details
I am experiencing an issue with submitting a form on my website. When I fill out the form and click the submit button, nothing happens and I do not see any network requests in the browser console.
The form is supposed to submit to the URL https://example.com/, but it seems that the form is not able to send a POST request to this URL.
I have checked the JavaScript console and there are no error messages, and I have also verified that the form fields have the correct names and that the submit button has the correct type.
I am using a shared hosting plan with PHP 7.3.33, and my website was built with WordPress. Recently, I decided to change the design of my website and I did it with Node.js v18.14.0.
I followed the advice of technical support, and I deployed the app to the server. using the application manager.
Now, the technical support answered me this: "What I can confirm is that it's making a successful POST request to "/" (e.g the same page), however there are no errors".
This is my form html:
This is my backend:
and this is my JavaScript:
Thank you for your help.
Best regards.
Node.js version
Not applicable.
Example code
Node.js v18.14.0
Operating system
The server is on linux.
Scope
Issue with Form Submission
Module and version
express