Fixed submit.php

No longer crashes silently