The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

question about onsubmit

Hello,

I am trying to do some form validation, found a few on the net and am testing them. My problem is that every time I hit submit, it looks like it bypasses the javascript and goes right to my action. I have the onsubmit in the form tag and the javascript instead of the head tags.

I am trying to use an image as the submit button and have also tried a submit button to no avail. Below are code snippets.

Are IsEmpty and IsNumeric functions? If so have checked those to make sure that they are working correctly? also try placing an alert as the first statement to see if the script is getting performed at all. If you could provide a link to the page maybe there is something else causing the problem