Codice PHP:
if ( $_POST['postattivo'] == "si" ) { 
è una stringa...