1) $_POST is an array, so you should use foreach.
2) You generate $sql_query (a string), but it is never executed (using mysql_query)
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
Minor fix:
$colors = $_POST['color'];
foreach ($colors as $color) {
$insert = mysql_query("INSERT INTO colors (color) VALUES ('$color')");
}
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86