I try to use server side validation.
When the form is republishied, the fields are filled in, but my post variables are lost.
Any idea how to solve this?
rgrds, bert
Hi bert,
There's a setting on the form General Tab to ask ChronoForms to try to republish the data.
Bob
Hi Bert,
If I understood this right, then you check the content of the $_POST variable when generating your form? If so, there are two ways I could think of, for restoring these values:
The first would be to include hidden inputs with the name and values of the $_POST variables you'd like to keep available in a republish. A possible downside here would be that these values would also be passed to the next step if the form submission is successful.
The second would be to store the data in the session storage if it's available, and try to restore it from the session storage if it's not available. This would require some additional php coding.
Just let me know if this is what you were thinking of, and need any pointers as to implementing this.
/Fredrik