Dipnot: input type submit tanımında name="submit" diye tanım bulunması gerekiryor ki

$_POST['submit'] değişkeni çalışabilsin.