Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continuing script after function is done

Status
Not open for further replies.

Shlomo

IS-IT--Management
May 11, 2000
28
US
I have a function in the middle of a ColdFusion page which makes sure tht email is good.&nbsp;&nbsp;It works fine except that if the email is good it doesn't continue processing the form.&nbsp;&nbsp;I think the reason is because on the &lt;form&nbsp;&nbsp;&gt; line the onSubmit brings the email check function which displaces&nbsp;&nbsp;the action keyword.&nbsp;&nbsp;Is this correct ? how do I fix this?<br>T.I.A.
 
Probably what's wrong is that you're not checking the return value of the routine being called by onSubmit()<br><br>if your form tag looks something like this:<br>&lt;FORM onSubmit=&quot;ValidateEmail()&quot;<br><br>change it to<br><br>&lt;FORM onSubmit = &quot;return ValidateEmail()&quot;<br><br>if the ValidateEmail() routine returns true, the form will be submitted.&nbsp;&nbsp;If it returns false, it won't <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top