Aggiungi print_r($_POST) per verificare che il valore sia davvero definito.