Ok so how do i validate my form first and then redirect it to a different page....
posted 7 years ago
You can't "redirect"a form, you can only submit it. Remove the onclick handler from the submit button, and move it to the onsubmit handler of the from. The method should return "true" if the form should be submitted, or "false" if not. The URL it should be submitted to goes into the "action" attribute of the form tag.
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad: