It’s been 2 days since I’m trying to make my form work, I tried with and without thank-you.html…it doesn’t work. I either have the error “Method not allowed” or “Page Not Found”.
I really want my Thank you page. I’ve tried everything in the support f netlify but I’m just on html and javascript…most help are for react and Next.
Can someone help me please ?
I did the same program with nodemailer and my own server, it’s working fine but not on netlify so I want netlify to handle the backend form.
When Netlify parses the static HTML for a form you’ve added, the build system automatically strips the data-netlify="true" or netlify attribute from the <form> tag and injects a hidden input named form-name . In the resulting HTML that’s deployed, the data-netlify="true" or netlify attribute is gone, and the hidden form-name input’s value matches the name attribute of <form>
I didn’t build because I dropped my file in Netlify it’s not from GitHub, I’m going to push my program in my repository and I’ll build and try again.
Thank you, I’ll be back in a little while to tell you if it’s working or not (pardon my broken English, I’m French doing my best (we a little English learnt from my mom))…
Thank you Sir from the bottom of my heart !
I added my htmls to my public folder and the form is detected now.
I’m so happy, I’m going to delete the actual website and add it over because now my link is not found . I tried producing it over, it’s published but the link is not found.
I would never try to upload from github if it wasn’t with your help. Thank you, thank you ! Thank you, I’m a baby beginner in programming.
For anyone with the Page Not Found issue after uploading from github, add all your html in a public folder, netlify.toml includes, if you have a script folder add it to the public folder also. Add a file name _redirects that contains : /* /index.html 200.
Go to you netlify Dashbord in Site configuration → Build & deploy → Build settings and add your Base directory : public (or the name of the folder with your htmls.
Once again, thank you @nathanmartin. I spended 2 sleepless night uploading manually for nothing to solve the issue in 30min !