hi,
for a multiple file upload i wanna force the user to fill all field values.
on the target page i wanna check if all fields are filled - if not print out a error message.
i tried
if (!count($picture)) {}
if (sizeof($picture) == "0" ) {}
if (sizeof($picture) == '0' ) {}
but none of these condition works for me - it goes always to the else part although the array field is empty
the fields are generated with a loop
for ($i=0; $i<$Files; $i++){
?>
<p>
<input type="file" name="picture[]" size="20">
<font face="Arial, Helvetica, sans-serif" size="2">Name</font>
<input type="text" name="filename[]">
</p>
<?
}
?>
the best way would be to do it clientside - but JS doens't accept [] in a condition...
would be apprecheated for help
regards,
christian