View Single Post
Old 01-09-2013, 07:57 PM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Your code isn't preventing the submission of the form, because it isn't capable of doing that.

Nothing on that page instructs the form to submit.

You need <input type="submit">

You need to attach your function to the onsubmit event, and on error it must return false.
Logic Ali is offline   Reply With Quote