I have the following code for selecting multiple values from a select box. However when I take the $meetings variable it only outputs the last value chosen. How do I gather all the values?
<td width=150><font size=2>Meetings</font></td>
<td><select multiple name=meetings>";
$meeting=mysql_query("select * from db_trainings where title='meetings'");
while ($result=mysql_fetch_array($meeting))
{
$training_name=$result['training_name'];
echo "<option value='$training_name'>$training_name</option>";
}
echo "</td>
<td width=150><font size=2>Meetings</font></td>
<td><select multiple name=meetings>";
$meeting=mysql_query("select * from db_trainings where title='meetings'");
while ($result=mysql_fetch_array($meeting))
{
$training_name=$result['training_name'];
echo "<option value='$training_name'>$training_name</option>";
}
echo "</td>