prima del ciclo foreach potresti provare a mettere
codice:
unset($_POST['submit']);