Instead of the standard grey submit button, I am trying to get an image as the submit button in the form. Here is the modified version of the form, with the new submit image. Although this approach has worked in other forms for me, it is not working here and I can't figure out what to do to make it work properly. The form will submit fine, but if form is submitted without everything being entered properly, it redirects to the next page and gives an error message. Does anyone have a clue how to code the submit string so it will work properly? Thank you for any suggestions.
Your problem has nothing to do with the fact that you're using an image. And before I tell you what the problem is, what's more important is that you learn *how* to troubleshoot these kinds of problems.
(1) The first thing you should have done was to replace the "bad" <input...> (submit) line with the "good" <input...> (submit) line. You would have found that the "good" line didn't work either. You would have then learned that your idea that one line was "good" and the other was "bad" was wrong. The <input...> line is not where the problem lies.
(3) In cases where the above isn't helpful, start with a completely blank file and build it one line at a time, continuing to check to see at what point the script fails.
The problem was that the emailCheck function you called is undefined.