In the above code, I have an "onsubmit" attribute inside of the <form> tag itself. The function runFieldsCheck() saves the user information in a cookie to reload just in case there are errors. I also gave it the command "window.location.reload()" to reload on the same page because the PHP does the field validation. If no errors are found then the PHP sends an email with the information and a text message.
If there are errors, the errors are displayed in a box above the form which is displayed by "display=block".
It works well everywhere else but IE. The form doesn't seem to submit at all in IE. Even with everything filled out it still doesn't submit. Any idea why?
I suspect that you're running into problems somewhere between the attempt to save a cookie and the window.reload() during onsubmit() time. It's an unusual way of doing things like form validation.
My advice would be to have your runFieldsCheck() function simply validate the user's entries. If the data is valid, return true. If the data is invalid, alert the user with details about the problem and return false. You'll need to change your <form> tag to: