The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
reCaptcha re-display form data - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: reCaptcha re-display form data (/showthread.php?tid=88)



reCaptcha re-display form data - fyrftr72 - Mar 27th, 2009

Hi Ben, and thanks for this great script! I have my a single page form running properly. But, when the reCaptcha code is not put in correctly, all the fields are emptied. I know there is a re-display command. Is there a way to implement this with the current api?
Or would it have to be accomplished with Javascript or PHP on the form page?

Thanks, Gene


RE: reCaptcha re-display form data - Ben - Mar 27th, 2009

Hey Gene,

Thanks for the post! Yes, this is a PHP thing. Since there's a form submit, you'll need to re-populate all your form fields with their original values. It's a bit of a drag (especially for large forms), but it's a necessary one.

Take a look at this tutorial: Refilling form fields with the API. That should explain how to do it! Let me know if it's not clear on anything.

- Ben


RE: reCaptcha re-display form data - fyrftr72 - Mar 27th, 2009

(Mar 27th, 2009, 10:01 AM)Ben Wrote: Hey Gene,

Thanks for the post! Yes, this is a PHP thing. Since there's a form submit, you'll need to re-populate all your form fields with their original values. It's a bit of a drag (especially for large forms), but it's a necessary one.

Take a look at this tutorial: Refilling form fields with the API. That should explain how to do it! Let me know if it's not clear on anything.

- Ben

Thanks Ben. it took me a little time but I figured it out.