Código PHP:
$postCount = 4;
$postEmptyCount = $postCount;
for($i = 0; $i <= $postCount; $i++) {
if(isset($_POST[$i])) {
if(!empty($_POST[$i];)) {
$postEmptyCount--;
}
}
}
if($postEmptyCount) {
echo 'Alguno de los campos esta vacío';
}
Revísatelo, lo he hecho de coco deprisa!