Hello,
I'm Joris, from France, and I post on this forum for the first time because I encounter an issue with a form generated by Coffeecup in my new job.
I'm not the author of the form, he's no longer in the company, so I cannot ask him, and if I know two or three things about php and javascript, I've never worked with Coffeecup before.
So here's my problem :
I have a form in an html file, and a php file processing datas and writing in my database.
Everytime I click the submit button, the php file is executed two times :
- first time before data validation (even if my form is incorrect, the INSERT query is executed on my database, but not the display part of my php file).
- second time after data validation (only if each field of my form is correct), but this time, every data in POST variable is lost, resulting in an empty row in my database.
I have another form on another website, and since I can't see any difference between the two, the second one works perfectly.
Does anybody knows why my php script is called before data validation ? And why is it called also after data validation, but with empty POST variable ?
Joris
PS : excuse my english, it's not my native language, so what I wrote can seem a little bit weird sometime...
Double form submission issue
Hi Joris,
Can you share a link to the form? Do you have the fb file so you can reexport the form and republish the files?
Can you share a link to the form? Do you have the fb file so you can reexport the form and republish the files?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.