First pass on submit

My first changes to submit.php and index