octaValidate-PHP V1.2
Removed json_encode
on getErrors() method, so that it will be used directly on your PHP script.
if( $myForm -> validate($valRules) ){
//process form data here
}else{
//instead of doing this
print_r( $myForm -> getErrors() );
//do this instead
print_r( json_encode($myForm -> getErrors()) );
}