I've been thinking about making a folder uploader for a while for my image gallery, and I was reading through the uploading page on php.net. Here
What my idea would have been is to have the user input the folder directory. From there, you could throw every file in the directory into an array, and then process it from there, but the thing that I don't know how to do is this part:
<form enctype="multipart/form-data" action="_URL_" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
How would you assign the names to each file all in the same page? I only know how to assign the <input name> when I hit the submit button...but not when they're on the same page. Any ideas?