im having a problem in getting multiple values which i unload it from db and post to get all values by means of while loop but instead only the first value in array will display. here is my script:
submit.php
$res=mysql_query(select number from phonebook);
while ($row = mysql_fetch_array($res))
{
$number = $row['number'];
}
<form method="post" action="send.php">
<input type="checkbox" name="number" value="<?php echo $number ?>">
<textarea name="message"></textarea>
<input type="submit" name="submit" value="submit">
send.php
$message = $_POST['message'];
$number = $_POST['number'];
exec('echo '.$message.' | mySmsGw --sendsms '.$number);
im trying to send message in multiple contact numbers and getting it with while loop but still only get the first value in number column.
thanks