NO PLACE in the first code do you show us where and how you are calling "submit.asp".
So how can we guess whether, indeed, you are calling it with the correct parameters in the query string?
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.