Updates to submit.php

Removed useless, outdated function.