mulitple file fields

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

mulitple file fields

Post 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?
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

Post by Jim_Bo »

Solved ..

Missed

}
$counter++;
}

from the process form ..
Post Reply