FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conserve textarea data after captcha error
#1
using version 2.3

I have a very simple post form. It has a couple of input fields for name and email (no client or server-side verification), followed by a <textarea> for user questions/requests. I recently added a reCaptcha

I followed carefully the documentation for this on the formtools site. The instructions include information on conserving the data for the client should they input the Captcha wrong and those instructions worked perfectly for my <input> fields. However, the examples given only work for <input> fields, not for <textarea>, for the simple reason that <textarea> fields have no "value".

Following some suggestions I encountered online, I used the following to try and conserve the text in the <textarea> after an Captcha error:
<textarea id="request" type="text" name="pedido" cols="70" rows="10">
<?php echo htmlspecialchars($_POST['pedido']);?>
</textarea>

I've run into some variations on this without the htmlspecialchars also, but so far nothing works. I always get the textarea blanked out on the Captcha error.

What am I missing here?
Reply
#2
Hi Jon,

Outputting the text area content as you have should work. You might want to try to bypass the API when using Captcha: http://forums.formtools.org/showthread.php?tid=2306

Cheers,

Joe
Reply
#3
(Jun 27th, 2014, 2:53 PM)Joe Wrote: Hi Jon,

Outputting the text area content as you have should work. You might want to try to bypass the API when using Captcha: http://forums.formtools.org/showthread.php?tid=2306

Cheers,

Joe

Thanks. Unfortunately I'm totally ignorant on php and not much more informed about javascript, but I'll check out your link and try to get my head around it.
- Jon
Reply
#4
There is an option of tools available in every forum so that we can make changes that are necessary in the forums. Bring about this thesis rush reviews you can do painting, changing the color and font of the forums.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)