View Single Post
Old 03-09-2007, 06:31 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
If you dont want the uploader to login, then you can just create a few select boxes, which consist of the available directories, say one holding:
Code:
...
<select name="user">
<option value="John">John</option>
<option value="Karen">Karen</option>
<option value="Brian">Brian</option>
</select>
...
<select name="event">
<option value="Party">Party</option>
<option value="Relaxation">Relaxation</option>
<option value="Misc">Misc</option>
...
Then in your upload script you'd make it
PHP Code:
$target_file_path "c:\\Server\\upload\\" $_POST['user'] . "\\" $_POST['event'] . "\\" $file_name
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote