A
Anonymous
Guest
Hi
Is it possible to upload an entire directory from a form? Also, I would like to create dynamic directories based on selections made in my form, but I am not sure how to do this. Any help would be much appreciated!
uploadform.php
But this is where I get stuck :-o
I've looked at the upload script examples on this forum as well as google, even on hotscripts.com but everything seems to deal with files only. My problem is that the directory I have to upload has about 30 files and will take ages to add one by one. I'm just getting really lost here and my mind is running in circles around what to do to make this work.
I'm thinking that I need to declare the specified options on the form as variables? Pleeeeaaassseee help![/code]
Is it possible to upload an entire directory from a form? Also, I would like to create dynamic directories based on selections made in my form, but I am not sure how to do this. Any help would be much appreciated!
uploadform.php
Code:
<html>
<head>
<title>Uploader</title>
<link href="style.css" rel="stylesheet" type="text/css">
<h1 align="center"><u>BLAH BLAH DIRECTORY UPLOADS</u></h1>
<br>
<p align="center">Select the directory to upload</p>
<form name="upform" action="upload.php" method="post" enctype="multipart/form-data">
<table align="center" border='0' align="left">
<tr>
<td>Directory :</td><td><input type="file" name="directory" size="22"></td></tr>
<tr>
<td>Root Dir :</td><td><select name="RootDir">
<option selected>Choose Directory</option>
<option value="Dir A">Dir A</option>
<option value="Dir B">Dir B</option>
<option value="Dir C">Dir C</option>
<option value="Dir D">Dir D</option>
</select></td>
</tr>
<tr>
<td>Sub Dir :</td><td><select name="SubDir">
<option selected>Choose Dir</option>
<option value="Dir 1">Dir 1</option>
<option value="Dir 2">Dir 2</option>
<option value="Dir 3">Dir 3</option>
</select></td>
</tr>
</table>
<p align="center">
<input type="submit" value="Upload!">
</p>
</form>
</body>
</html>
But this is where I get stuck :-o
I've looked at the upload script examples on this forum as well as google, even on hotscripts.com but everything seems to deal with files only. My problem is that the directory I have to upload has about 30 files and will take ages to add one by one. I'm just getting really lost here and my mind is running in circles around what to do to make this work.
I'm thinking that I need to declare the specified options on the form as variables? Pleeeeaaassseee help![/code]