OK, let's say you have 3 fields in the table (keep it simple) and you have a form that generates the three fields in arrays $field1, $field2 and $field3 and you don't know how many entries there will be. You can do something like this (assuming validation has been done to insure all fields have valid data):
$values="";
for ($i=0;$i<count($field1);$i++)
{
$values.="('$field1[$i]','$field2[$i]','$field3[$i]'),";
}
$values=substr($values,0,-1); // to remove last comma
$query="insert into table name values $values";
$result=mysql_query($query);
of course depending on your needs you may need to add the field names to your query, insert some null values for IDs, dates, ...