an easy fix will be
PHP Code:
echo "Thank you! Information entered.\n";
exit;
and remove the entire else clause.
In order to make the else clause work, you would have to echo or print() the form section of the page, which would make it a valid element in your else clause.