I have a for loop creating a form and a table
for ($j=0;$j<$i;$j++)
this works <input type='text' name='productname[$j]'>
this works to create multiple upload boxes in the sheet
<input type='file' name='upfile[$j]'>
when the form is submitted i use the same for loop to check and enter data into the database
$_POST['productname'][$j] returns the value from the above
but $FILES['upfile']['name'][$j] nor $FILES['upfile'][$j]['name'] returns anything
If i take the $j away in the <input type='file' name='upfile[]'
then $FILES['upfile']['name'] returns "ARRAY" not a value and
$FILES['upfile']['name'][$j] nor $_FILES['upfile'][$j]['name'] still return nothing.
Can anyone help.. please!