if ($_GET['do'] == 'ins') { foreach(array_keys($_POST['local']) as $key) { vardump($_POST['local'][$key]); vardump($_POST['visit'][$key]); } }