The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Value for textarea captcha - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Value for textarea captcha (/showthread.php?tid=619)



Value for textarea captcha - bart - Mar 30th, 2010

Hi all,

I've got a nice form working with captcha. The problem is that i cannot seem to get the value right for textareas.
If you mistype the captcha, all the fields are updated (because of a previous forum reply:
if (isset($_POST)) {
$fields = array_merge($fields, $_POST);
}
Except the textarea field doesn't work! I couldn't find any related subject on the forum.

I've set the value to the same value as input text and tried many others but that doesn't seem to work:
<td valign="top">Opmerkingen:</td><br>
<td><textarea name="comments" style="width: 100%; height: 200px" value="<?=htmlspecialchars(@$fields["comments"])?>"></textarea></td>

I hope someone can help me!

Regards, Bart
(Mar 30th, 2010, 6:14 AM)bart Wrote: all the fields are updated except for the textarea field

Pfew! It took me a while but i found it on a PHP forum somewhere. The value should be entered between the textarea opening and closing. This works: <td valign="top">Opmerkingen:</td><br>
<td><textarea name="comments" style="width: 100%; height: 200px" > <?=htmlspecialchars(@$fields["comments"])?></textarea></td>



RE: Value for textarea captcha - Ben - Apr 3rd, 2010

Glad you got it sorted, Bart. Smile

- Ben