in reply to File Upload To Selected Directory

One thing that I failed to mention in my original post was that the above perl/html files are part of a program that does the following:
~creates a new directory
~writes a .htaccess file to the new dir
~writes a .htgroup file to the new dir
~writes a .htpasswd file to the new dir

The main thing that I am trying to figure out is how to adjust the script to have the ability to upload to the newly created directories from a browser....once logged in.

I can also set up the script to write the the "upload perl script" and "upload.html" to the newly created directory which raises another question...how can I set the newly created perl script's $basedir to point to the new dir? create a $subdir variable?

Thank you for all of your input

koa

i want to learn