Uhmm....
I have form.php that POST to script.php an array of telephone numbers.
script.php must insert each variable in an xml file ,POST this file toan address and store the feedback in a database.
ex :
form.php
<form action="script.php" method="post">
<input type="text" name="message" size="10">
<input type="text" name="tel_numb" size="50">
<input type="submit" name="submit">
</form>
/*
where
$message = "bye-bye";
$tel_numb = "123456,678910,111213";
*/
script.php
/*
I need that a message be sent with a different http session
for each telephone number,so I try to do :
*/
$array = implode(",",$tel_numb);
$count = count($array);
for($i = 0 ; $i < $count ; $i++) {
$xml = "<mymessage>$message</mymessage>";
$xml . = "<telephonenumber>$array[$i]</telephonenumber>
$ch = curl_init ();
/* now the curl session that works fine */
}
of course in this way, $array[$i] will be = to "123456,678910,111213" ,but I need to send a message to a tel_numb,the same message to each tel_numb.
What can I do to disply only 1 element of $array progressively
in each http session loop?