i have an api of sms
<?php
// Configuration variables
$type = "xml";
$id = "92300xxxxxxx";
$pass = "xxxxxxxxxxxx";
$lang = "English";
$mask = "Outreach";
// Data for text message
$to = "$_POST['to']";
$message = "$_POST['message']";
// Prepare data for POST request
$data = "id=".$id."&pass=".$pass."&msg=".$message."&to=".$to."&lang=".$lang."&mask=".$mask."&type=".$type;
// Send the POST request with cURL
$ch = curl_init('http://www.outreach.pk/api/sendsms.php/sendsms/url'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch); //This is the result from Outreach curl_close($ch);
?>
now i make a form
<form method="post">
<input type="text" name="message">
<input type="text" name="to"> --->contact number list
</form>
now i want to send sms to multiple numbers with this i can send to one number at one time can anyone help me in this matter