non ho usato isNumeric(), ho fatto il controllo sia che il valore inserito non sia vuoto e che il valore non sia uguale a 0.
Codice PHP:
if ($n==or $c==or $g==or $h==or $i==or $j==or...)
    {
        
$_SESSION['form_error'] = 'Numeric field! Please insert a number.';
        
header("location: errore.php"); 
    }
        else ...