Form Submitting without Validation firing
Using Validation Toolkit version 2.3.5 I've added Behaviors on a Checkout Cart 5 page to fields such as the CC Number field. These applied the behavior at the field level such as :
<input name="cc_number" type="text" id="cc_number" onblur="WAValidateCC(document.forms[0].cc_number,document.forms[0].cc_number.value,'- Invalid credit card number','','4:51:52:53:54:55:34:37:6011:',document.forms[0].cc_number,0,true)" value="" />
In the form tag there is the Behavior to show any errors :
<form action="confirm.php" method="post" name="ecart_checkout_form" onsubmit="WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false,false);return document.MM_returnValue">
Here is the eCart code on the same page:
<?php
require_once( "webassist/framework/library.php" );
require_once( "webassist/framework/framework.php" );
?>
<?php
//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?>
<?php
$eCart1->GetContent();
?>
<?php
if ($eCart1->IsEmpty()) {
$eCart1->redirStr = "display.php";
$eCart1->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?>
Why or what is causing the client side validation to not be called prior to the form submission?