Forums

Form data lost when verification fails

lindaneale 02 Feb, 2009
I have version 2.5.J1.5 RC3.1 on a Joomla 1.5.5 site. The Captcha works fine but if you make a mistake entering the captcha, all the data in the fields is lost. Is there anyway to ensure that this data is retained so the user doesn't have to fill it out again. The site is <!-- w --><a class="postlink" href="http://www.pownall.co.uk">www.pownall.co.uk</a><!-- w -->
Thanks
GreyHead 02 Feb, 2009
Hi lindaneale,

If you only have a couple of forms then your best bet is to upgrade to ChronoForms 3.0 which has an option that usaully works with this OK.

There is no automatic upgrade but you can do a copy and paste into a new form fairly simply.

If you have to stay with v 2.5.9 then you need to set the values of each input in your form and this will work fine.
<?php
$post =& JRequest::get('post');
?>
<input . . . name='field_name' value='<?php echo $post["field_name"]; ?>' . . . />

Bob
lindaneale 02 Feb, 2009
Thank you GreyHead
I really appreciate the prompt response. I'll give it a try right now - if not I'll upgrade.
Many thanks
This topic is locked and no more replies can be posted.