crackpanda Posted March 13, 2009 Share Posted March 13, 2009 Hello, i have a series of check boxes with the same name="" tag (example[]), and i want to count how many of these check boxes have been selected. Can anyone help me construct such a loop in a very simple/clean way? I want to see if more than 2 check boxes have been selected. Link to comment https://forums.phpfreaks.com/topic/149210-php-counting-checked-checkboxes-arrays/ Share on other sites More sharing options...
The Little Guy Posted March 13, 2009 Share Posted March 13, 2009 count($_POST['example']); Link to comment https://forums.phpfreaks.com/topic/149210-php-counting-checked-checkboxes-arrays/#findComment-783559 Share on other sites More sharing options...
crackpanda Posted March 13, 2009 Author Share Posted March 13, 2009 count($_POST['example']); thanks much Link to comment https://forums.phpfreaks.com/topic/149210-php-counting-checked-checkboxes-arrays/#findComment-783565 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.