<?php
echo("<form action='yourinsertscript.php' style='font-family: arial; font-size: 10pt method=get>");
echo "<select name='ProgName[]' multiple style='font-family: arial; font-size: 10pt size='5'>";
echo "<option value='All'>All Travel & Learn Programs</option>";
echo "<option value='AmRev'>American Revolution Seminar</option>";
echo "<option value='CWC'>Civil War Conference</option>";
echo "<option value='Road'>Civil War Studies on the road</option>";
echo "<option value='Jeff'>Jefferson Symposium</option>";
echo "</select>";
printf("<td><input type=submit value=\"submit\"></td>\n");
echo "</form>";
?>
then in yourinsertscript.php
<?php
$count=count($ProgName); // this is for count how much item your users choose
$array=$count-1; // because array start from 0, you must decrease the count by 1
//after that
$i=0; // set the arrray number
for($i=0;$i<=$array;$i++){ // start looping the insert command here
$query="insert into your_table (table_field_here) values ('$ProgName[$i]')";
if(!mysql_query($query,$yourconnection))
{
echo mysql_error();
exit;
}
} // end of looping
?>
i hope this will help you
good luck then
😉