Codice PHP:
<form onsubmit="return subForm(this);"
Codice PHP:
<script>
function 
subForm(theform){
            if(
checkForm(theform)==false){
                
alert("it is false");
                return 
false;
            }
            
alert("it is true");
            return 
true;
    }
</script>