下面的代码有什么问题。错误警告:为 foreach() 提供的参数无效
if(isset($_POST['submit']))
{
foreach($_POST['team[]'] as $value)
{
$insert=mysql_query("INSERT INTO team('team') VALUES ('$value')");
}
if($insert)
{
echo "dONE";
}
}
<form method="post" action="check.php">
<input type="checkbox" name="team[]" value="AG"> Argentina
<input type="checkbox" name="team[]" value="GE"> Germany
<input type="checkbox" name="team[]" value="BR"> Brazil
<input type="submit" name="submit" value="submit">
</form>