SyntaxFix
Write A Post
Hire A Developer
Questions
My psychic debugging skills tell me that your submit button is named submit. Therefore, form.submit refers to the button rather than the method.
submit
form.submit
Rename the button to something else so that form.submit refers to the method again.