//Assign each array to a variableforeach($_POST['Activity'] as $row=>$Act){$Activity=$Act;$Position=$_POST['Position'][$row];$StartDate=$_POST['StartDate'][$row];$EndDate=$_POST['EndDate'][$row];}

//enter rows into databaseforeach($_POST['Activity'] as $row=>$Act){$Activity=mysql_real_escape_string($Act);$Position=mysql_real_escape_string($_POST['Position'][$row]);$StartDate=mysql_real_escape_string($_POST['StartDate'][$row]);$EndDate=mysql_real_escape_string($_POST['EndDate'][$row]);}