onsubmit validate() not working

liunx

Guest
Can someone look at this code and tell me why my program submits without running my function validate(); <br />
<br />
Thank you!!!!<br />
<br />
<!-- m --><a class="postlink" href="http://www.surgimark.com/products/checkout.htm">http://www.surgimark.com/products/checkout.htm</a><!-- m --><!--content-->tae a look at this part of the code in your form element<br />
<br />
onsubmit="validate()"return document.MM_returnValue><br />
<br />
what you need to do is put the a code in qoutes<br />
document.MM_returnValue<br />
the above is out of qoutes<br />
<br />
second you need to make sure that your function validate returns false in case form does not validate and then you need to get that return value<br />
<br />
the correct code will be<br />
<br />
onsubmit="return validte();return document.MM_returnValue"><!--content-->Ok, I changed what you said, but it is still not working correctly.<br />
<br />
It still goes directly to submiting the form w/out running the validate function...<br />
<br />
<!-- m --><a class="postlink" href="http://www.surgimark.com/products/checkout.htm">http://www.surgimark.com/products/checkout.htm</a><!-- m --><!--content-->figured it out, thank you!<br />
<br />
Katie<!--content-->
 
Back
Top