Forums

Problem: Wrong image verification clears form

mark_orion 07 Jun, 2008
I am very happy with Chronoforms, but I discovered that whenever a wrong Image Verification code is entered the Sorry,... popup comes up and all entries in the form are lost. How can I use the captcha function without loosing the form contents when people enter wrong strings ?
thanks, Mark
GreyHead 07 Jun, 2008
Hi Mark,

You need to set the values of your form fields like
value="<?php echo $_POST['field_name']; ?>"
for a text input field. When you do this with all the fields then the values will be preserved.

Note: you need some slightly different syntax for select, check, radio and textareas, but they aren't too hard to workout.

Bob

PS If you can wait a while the next release of ChronoForms shoudl handle this for you.

PPS This does not work with the ChronoForms mambot and Max doesn't yet have a fix for this :-(
mark_orion 07 Jun, 2008
Thanks for the quick help that solved my problem!
Mark
This topic is locked and no more replies can be posted.