ciao ma fammi capire

tu confronti
codice:
 if(!$abtot == $tot)
dove $tot è un intero e $abtot è una stringa?

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
codice:
$abtot= array('valore1'=>$_POST['valore1'],'valore2'=>......etc etc);
poi puoi confrontare il count($abtot); con $tot cosi hai a confronto due interi