Is it possible to change te default success page you get when you submit a form
I found different answers regading this problem, some said just use the action data-attribute but it just ignores it. Other said you need to redirect with use of functions
If you need to redirect the page can someone pleas explain it to me in detail how to do it because I have no clue on how to do it.
It would be nice to see if the action arrtibute works because it is the intended way of handeling a submission
But anyways thanks in advance
July 20, 2020, 9:01am
docs cover the most simple way of changing the form’s action upon submission. We also have a great guide which looks at examples from a couple of popular static site generators which you may want to check out!
it is weird because i tried it but didn’t work
my code is
<form action="/dist/pages/form_afhandeling.php" method=“post” … and it just ignores it and on the live page it looks like this <form method=“post” ….
July 20, 2020, 8:37pm
hi there, are you trying to handle your form with a php file? Netlify does not support php the way i think you are hoping to.
Here is a good summary of what you can and can not do on Netlify you might find helpful:
Last reviewed by Netlify Support on December 2022
How do I run a server/database at Netlify?
We often get questions about how to run a specific backend server or database at Netlify. Examples of these types of questions include:
How to I get my node HTTP listener to respond to requests?
How do I start Mongo/MySQL/<insert-some-database-here> running on the server?
How can I SSH into my website?
We are here today to answer these questions - and the answer is: you can’t!
What do you…
I was trying to get name, email, message, … with php and build a page with php so I would have the persons name and stuff like that.
But that you can’t or am i wrong
In what language can I try to replicate this or is there none?
If not: do I need to make a normal html page and it would be all good but I lose the name and stuff like it?
hmm thast not good, But I think I will make a stactic html page and placing a shot words or so since it will not work
July 21, 2020, 9:05am
Yeah, PHP ain’t gonna work around here, unfortunately
Check out this resource for more!
Ok tanks for letting me know, I will try to make a static landing page It is not as nice as in php but it will do the job
Is there any possibility php is ever comming to netlify? Because I think it would be a great asset on this platform
July 21, 2020, 9:02pm
@ikke123HH, it is very very unlikely we would consider implementing support for PHP in the future. I’m sorry, wish i had better news for you!
Ah to bad but it is above my decision