Sorry I wasn't very clear...
Simply, I have a scenerio wher a user is going to upload X number of files so, they choose how many files to upload and they are then presented with the number of form elements with which to upload their chosen number of files.
What I want to accomplish is to generate a SQL update statement on the fly that will update the database table with the file info.
I initially was going to use HTTP_POST_VARS and loop through this but it seems that HTTP_POST_VARS doesn't pickup the file upload form elements so, I turned to HTTP_POST_FILES to get the same kind of info(form field name, file name) form it to populate the SQL statement with. I just can't see how to get the form field name from HTTP_POST_FILES.
Thanks