v.piasta
posted this
28 December 2022
Can anyone explain how the success/failure message after a form submission works in detail?
I am trying to use a form originally created with nicepage with a different PHP script, so the submission does not send an email but executes a different evaluation.
On the original page, there are two divs for success and failure that have CSS style = "display: none:" and one of them is displayed after submission. Apparently, the javascript that changes their display status is in nicepage.js. It is too complex for me to analyze. So, maybe someone can tell me what exactly makes a submission a "success" or a "failure".
In other words, what is this script testing when a form is submitted and how can I simulate this from my own PHP script?
Can anyone explain how the success/failure message after a form submission works in detail?
I am trying to use a form originally created with nicepage with a different PHP script, so the submission does not send an email but executes a different evaluation.
On the original page, there are two divs for success and failure that have CSS style = "display: none:" and one of them is displayed after submission. Apparently, the javascript that changes their display status is in nicepage.js. It is too complex for me to analyze. So, maybe someone can tell me what exactly makes a submission a "success" or a "failure".
In other words, what is this script testing when a form is submitted and how can I simulate this from my own PHP script?
Last edited 28 December 2022 by v.piasta
Vote to pay developers attention to this features or issue.