in reply to Changing a variable to form submitted?

All you need to do is use the CGI parameters like this:
$uploadPath = $req->param("path");
although I do not recommend it.. just make your own world writable directory to which people can upload... or else they can upload malicious files to your root path... you know the rest...
Chady | http:/chady.net/