There are five common ways to submit an HTML form to the server:
There are four different ways to script events against these elements in order to POST the form properly while still including some kind of client-side validation:
submit
method of the form (works for #4 above)submit
method of the form *and* then return false;
every time (works for #5 above)Do a view source on this page to see the javascript details that illustrate each of the above options. For a bit more description of this page, check out form-submit soup.
Mike Amundsen