View Single Post
  #6 (permalink)  
Old May 29th, 2005, 04:59 PM
nikolai nikolai is offline
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, it's important you understand WHY Anshul's script works. In your version, each file you uploaded was being stored in a variable called "userfile". You kept overwriting the value of this variable with each successive file.

By adding the "[]" to the end of the input name, you append each file to the end of an array named "userfile", instead of overwriting a single value.

Make sense?
Reply With Quote