When you read a variable that is coming form POST you read it like this $POST['var_name'] from GET id $GET['var_name'] try to read Php manual, and see if not this is your problem.
In your script var $submit it come on POST and you should read like $POST['submit'] ex. if(!isset($POST['submit']))