Based on a checkbox value this form will add subscribers to a corresponding list, but it can't save more than one value.
How do you merge, in order, to select and save more than one checkbox value?
if(isset($_POST['checkbox_list']) && in_array('Austin Metro', $_POST['checkbox_list'])){
$listID = '3';
if ($listID){
$indeed_mail->indeed_wysija_subscribe( $listID, $email );
}
break;
} else if(isset($_POST['checkbox_list']) && in_array('Central Austin', $_POST['checkbox_list'])){
$listID = '4';
if ($listID){
$indeed_mail->indeed_wysija_subscribe( $listID, $email );
}
break;
} else if(isset($_POST['checkbox_list']) && in_array('Georgetown', $_POST['checkbox_list'])){
$listID = '5';
if ($listID){
$indeed_mail->indeed_wysija_subscribe( $listID, $email );
}
break;
}