Skip to content

octaValidate-PHP V1.2

Compare
Choose a tag to compare
@Octagon-simon Octagon-simon released this 18 Aug 13:29
· 6 commits to main since this release

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()) );
}