if($textboxname == " "){
echo "Tüm alanları doldurun.";
}

veya HTML'de textbox'a required="" ekleyerek de,boşluk filtresini ayarlayabilirsiniz.