I'm making a program to help me upload files to my site en masse. I've already sorta created the commandline argument portion of it, but I want to create options for each filename passed via commandline, so I can define where on the server each file will go. For example, if I were to select 4 files and pass them to the program via commandline, I want 4 groups of textboxes to show up, with 2 textboxes per group. The first would simply be to show the file to be uploaded, and would be read only, the second would be to define the upload path. I'd probably also have buttons in each group to remove a file fom the upload queue, and a button seperate from the groups to add another group to select another file to upload.
How would I go about making an array (I assume that's what this will need to be) of textboxes that I can iterate through and process each one individually? In PHP I can simply make the name attribute of the textbox something like "somename[]" and no matter how many I have, as long as they're named that name, they will be passed to the script as an array.
I'm not sure if I'm explaining what I want to do properly, so let me know if it doesn't make sense.