When working with isset($_POST['submit']), the key is making sure your form is actually sending the submit value and that the button has a proper name...