PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
echo '<label><input class="checkbox" type="checkbox" value="'.$row['customer_phone'].'" name="customer_phone[]" id="customer_phone"/> '.$row['customer_name'].' - '.$row['customer_phone'].'</label>';
...
$customer_phone = $db->real_escape_string($_POST['customer_phone']);
$smsmessage = $db->real_escape_string($_POST['smsmessage']);
// Example of use
$response = sendSMS('username', 'password', $customer_phone, $smsmessage, $from);
Your form specifies customer_phone[] as an array but your form processing ignores that fact. You need to iterate over the $_POST['customer_phone'] array and send the message to each one individually.