infatti ho chiesto per questo motivo

beh ...

if ($_POST['field'] != (int)$_POST['field'])
{
// errore qua
}