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
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
Checkboxes - only the last checkbox is collected - 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: Checkboxes - only the last checkbox is collected (/showthread.php?tid=905)



Checkboxes - only the last checkbox is collected - seiceach - Oct 29th, 2010

Hi-

another beginner question:

I have multiple fieldsets with checkboxes but I can see only the last checked value in FormTools.

Code:
<input value="red" type="checkbox" name="test" /> red
<input value="green" type="checkbox" name="test" /> green
<input value="blue" type="checkbox" name="test" /> blue

If I check all three possibilities, only "blue" appears in FT (Submissions/Vies/Edit), if I check red and green, I get green, and so on - only the last value comes through.

Field Option Group seems to be ok now...

Any suggestions?

Thank you


RE: Checkboxes - only the last checkbox is collected - Ben - Oct 31st, 2010

Heya,

Did you figure this one out? If not, change your markup to this:

Code:
<input value="red" type="checkbox" name="test[]" /> red
<input value="green" type="checkbox" name="test[]" /> green
<input value="blue" type="checkbox" name="test[]" /> blue

PHP requires those square brackets at the end of the name attributes for checkboxes. They let the server know that there can be multiple values sent for that field.

Good luck! Smile

Ben


RE: Checkboxes - only the last checkbox is collected - michatmaster7 - Dec 31st, 2010

I think I love this forum.




RE: Checkboxes - only the last checkbox is collected - Desy231 - Dec 4th, 2017

So much useful information. I am very glad that I joined you!


RE: Checkboxes - only the last checkbox is collected - Degni - Jan 10th, 2021

Es ist wirklich eine sehr schreckliche Situation. Ich rate Ihnen, diese Pillen https://mannapotheke.de/kamagra/  zu versuchen , da Sie mir immer geholfen haben, rate ich Ihnen, diesen Ort zu versuchen, da es mir hilft, diese Art von Problem zu lösen