Most likely a php error is occurring when you submit the form.
add the following code at line 1 to turn on error reporting:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
and report back any errors that show on the page.
for the future, please attach a copy of the original php file rather than pate the code in your message.