Jun 25th, 2014, 11:53 PM
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?
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?