View Single Post
  #15 (permalink)  
Old 09-28-06, 04:20 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
just store all the names of the input fields in an array, or if they have a logical name, you might wonna browse over them using a for loop.
either this:
PHP Code:

$fields = array('field_name1''field_name2''etc...');

for(
$i=0$i<sizeof($fields); $i++){
  
//do something with the input

or this:
PHP Code:

for($i=0$i<$number_of_fields$i++){

  
$input $_FILES['field'.$i];
  
//do something with the input

Hope this helps you,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote