Page 1 of 1

mulitple file fields

Posted: Thu Dec 29, 2005 3:31 pm
by Jim_Bo
How can i send multiple

<input name="photo_filename" type="file">

fields across to a gd script?

The gd script can handle multiple images

I thought something like:

Code: Select all

<?php
  while($counter <= $number_of_fields){
  echo '<input name="photo_filename[]" type="file"><br />';
  $counter++;}
  ?>
but if I add more than one into the form it fails?

Posted: Thu Dec 29, 2005 4:54 pm
by Jim_Bo
Solved ..

Missed

}
$counter++;
}

from the process form ..