ciao ma fammi capire
tu confronti
dove $tot è un intero e $abtot è una stringa?codice:if(!$abtot == $tot)
vedo che in $abtot sommi dei valori in $_POST[] ,ma questi sono tutti interi o stringhe?
secondo me dovresti creare un array associativo di $abtot
tipo
poi puoi confrontare il count($abtot); con $tot cosi hai a confronto due intericodice:$abtot= array('valore1'=>$_POST['valore1'],'valore2'=>......etc etc);