Hi,
I am using Chrono Forms 2.0 and when I fillin my form and say I made a mistake in entering the captcha (Imageverification) phrase, the form resets back to empty fields. As you can imagine this is not very friendly if you have a large form with many fields that you have entered. Is there any way to avoid this but need to keep the captcha / Imageverification functionality?
Many thanks for your help.
Al<br><br>Post edited by: lightbeing, at: 2007/09/28 13:03
I have just upgraded to the latest stable release v2.3.4 and it is still clearing my form fields when I enter a wrong value for the imageverification. Is this a bug or a feature? Any help will be very appreciated.
Regards,
Al
I have just upgraded to the latest stable release v2.3.4 and it is still clearing my form fields when I enter a wrong value for the imageverification. Is this a bug or a feature? Any help will be very appreciated.
Regards,
Al
Hi Al,
You should have version 2.3.4 or later installed then you should add this piece of code inside the value attribute of each field to keep its value :
<?php echo $_POST['field_name_goes_here']; ?>
this will keep the submitted value for this field!!๐
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks Max that worked for an input field๐. How about keeping the values of a dropdown or radio button field(s)?
Regards,
Al<br><br>Post edited by: lightbeing, at: 2007/09/28 16:05
Nice question, this will need alittle longer PHP to check the submitted value, and in case of a dropdown you echo "selected" at the right option and in case of radio you echo "checked"!!๐
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi PlayGod,
Sorry about the missing code . . . my excuse is that the FAQ editor isn't very good at handling code and I have to work out which <>s have to switched to entities. I'll try and fix it . . .
Bob
Tried publishing GeSHi and Code Support mambots in the Administrator?
Hi PlayGod,
Hmmm they are turned on but the mambots aren't active with the EasyFaq module . . . I think I fixed the FAQ here though.
Bob
halloooooooo
this piece of code works in my form as well, but what about the typed text in a textarea. it seems not work there.
thanks in advance
sepppp
upppps, sorry for writing that. i didn't realize that there where other 2 pages to read. please delete my stupid post<br><br>Post edited by: sepppp, at: 2008/04/12 21:52
see attached .cfbak file for textarea code [file name=maintenance_inquiry.cfbak size=5227]http://www.chronoengine.com/components/com_fireboard/uploaded/files/maintenance_inquiry.cfbak[/file]