For some reason I can't seem to figure out why I can't retain all of the results from a form posted to my script that contains a multiple select box called 'colors'. This is the code I have right before my SQL Insert statement:
$numOpts = count($colors);
if ($numOpts>1){
$mycolors=implode(",",$colors);
}elseif ($numOpts==1){
$mycolors=$colors;
}else{
$mycolors="";
}
In the insert statement I am just inserting the value '$mycolors' . Can anyone figure this one out?