has extra blank 's and I have no idea why. please help me get them out
You should close the option tag. Change

$opt7.="&lt;option value='$var'&gt;$m $name&lt;option&gt;";


to

$opt7.="&lt;option value='$var'&gt;$m $name&lt;/option&gt;";