for($count = 1; $count < $max; $count++){
if(isset($_POST['Wert'.$count])) $post_arr[] = true;
}$post_arr enthält am Ende nur true-Werte, weil du auch nur solche reinschreibst.
Habs editiert:
[code lang=php]
for($count = 1; $count < $max; $count++){
if(isset($_POST['Wert'.$count]))
$post_arr[] = true;
else
$post_arr[] = false;
}
> > if(in\_array(false, $array, true))
>
> Und hier befragst du nicht mehr den Inhalt von $post\_arr.
Angepasst:
~~~php
if(in_array(false, $post_arr, true)){
Jetzt sollte aber alles seine Richtigkeit haben.