Losing data with form validation.

toby 31 Aug, 2008
I've dug through the forum and can't seem to find a fix for this. I have a simple, yet long, form which is being validated via the Server Side Validation option (thank you for including the example).

<?php
if($_POST['terms'] != 'AGREE')
return 'Missing Fields Detected.<br /><br />Please be certain you have completed the entire application, including checking the "Agree" box directly above the signature area.<br /><br />Thank you.';
?>



When the missing field is detected the entire form is wiped. I've seen a suggestion to use showform($_POST); in the On Submit field. I've played with this, but being a novice, I must be doing something wrong.

I'm not really sure where to start here. I only need the form to validate without losing what has been entered. I'm running the latest version of Joomla and the latest release (3.0 Beta 2) of ChronoForms.

Thanks in advance!
Max_admin 31 Aug, 2008
Hi toby,

you mean the form loses all data if the missing filed is detected ? try to enable Anti spam and enable "try to republish" option!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toby 31 Aug, 2008

Hi toby,

you mean the form loses all data if the missing filed is detected ? try to enable Anti spam and enable "try to republish" option!


Yes, the form loses all data. I've enabled Anti Spam and the republish feature is working both with and without the Server Side Validation enabled.

For now, I can run with utilizing the anti spam measure as a fix. Thank you🙂

And thanks so much for the quick reply!
Max_admin 01 Sep, 2008
Thank you Toby!!🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.