evet birini yazıp kopyala yapıştır yapmıştım hepsi yanlış çıkmış.

if ($post1="")
$bos++;
if ($post2="")
$bos++;
if ($post3="")
$bos++;
if ($post4="")

olan kısım

if ($post1=="")
$bos++;
if ($post2=="")
$bos++;
if ($post3=="")
$bos++;
if ($post4=="")

olacak