$lista = $_POST['check'];for($i=0; $i<count($lista); $i++){ mysql_query("INSERT INTO tabla VALUES (0, ".$lista[$i].")");}