I have set up a basic contact form which emails the form data via PHP. This works fine but I am having trouble intregrating validation script into the code to prevent the form from submitting when no data is entered. I have tried integrating the below validation script but this doesn't prevent the form from submitting?
Big ass milf redhead creampie
I don't see anything else that would prevent this from working. Although I'd suggest another route.
I think what's happening is the ajax call goes, but your form is still submitted normally as well. You need to return false from the function with your ajax request.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
There is NO guarantee whatsoever...
Post as a guest Name. Email Required, but never shown.
Validating forms fields using HTML5...
Post Your Answer Discard By clicking "Post
MORE: How is half life used with absolute hookup