View Single Post
  #5 (permalink)  
Old July 29th, 2003, 03:59 AM
planeswalk planeswalk is offline
Authorized User
 
Join Date: Jun 2003
Location: Quezon City, MM, Philippines.
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

This is because you have document.myform.submit() after the regular expressions code block. The first thing that you need to do is remove that line from the javascript. Then type onSubmit="return doCheck()" as an attribute in your <form> tag (you have to have this) and remove the onClick attribute from the button. This will force your HTML form to do the expression check when you submit the form and will not submit the page if the check fails.

Cheers!
Marlon
Reply With Quote