$fieldname ) { // check for values in url and get value if available if( isset($_GET[ $fieldname ]) ) { $filteredvalues['value'] = explode(',', $_GET[ $fieldname ]); //$filteredvalues['value'] = ($_GET[ $fieldname ]); }; //end check for values in url // construct the checkboxes if( $fieldname == $fields['name']) { ?>
$choicelabel ) { ?>
value="" name="" />

Results: