I have a registered where I check if the fields are filled, in some of the fields one can only put the digits 0 through 9.
But if the person puts 0 of it as if it had not filled anything.
This is done by checking empty()
. A small snippet of verification is there.
}else if (empty($idade)){