How do I allow users to chose where to upload the file?
<p>I want to allow my users to chose where to upload their files. If anyone could help me, that'd be great.</p>

<p>uploader.html
<a href="http://pastebin.com/LQP9jxLH" rel="nofollow">http://pastebin.com/LQP9jxLH</a></p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;SnowServer - Uploader&lt;/title&gt;
&lt;meta name="Description" content="DESC HERE" /&gt;
&lt;meta name="Keywords" content="KEYW0RDS HERE" /&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;link rel="stylesheet" href="http://www.codyleek.x90x.net/main.css" type="text/css" /&gt;
&lt;?php
session_start(); /// initialize session
include("passwords.php");
check_logged(); /// function checks if visitor is logged.  
?&gt;
&lt;/head&gt;
&lt;body background="http://i457.photobucket.com/albums/qq291/acebarachael/Wood-Background.jpg"&gt;
&lt;div id="wrapper"&gt;&lt;img src="http://www.uzumakinet.x90x.net/images/banner1.jpg"&gt;&lt;/img&gt;
&lt;div id="header"&gt;
&lt;div id="navbar"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/files.html"&gt;File Explorer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="webmail/index.html"&gt;Webmail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/uploader.html"&gt;Uploader&lt;/a&gt;&lt;/li&gt;
&lt;font color="FFFFFF"&gt;&lt;marquee&gt;Welcome to SnowServer!&lt;/marquee&gt;&lt;/font&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id="main"&gt;
&lt;center&gt;&lt;h2&gt;File Uploader Beta&lt;/h2&gt;&lt;/center&gt;&lt;br /&gt;
&lt;center&gt;
&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
File: &lt;input type="file" name="filename" /&gt;
&lt;input type="submit" value="Upload" /&gt;
&lt;/form&gt;
&lt;/center&gt;
&lt;/div&gt;
&lt;div id="footer"&gt;&lt;font color="FFFFFF"&gt;Coded and Designed by Cody Kaczynski | zenLayout by Cody Kaczynski | zenLayout: SnowServer Edition by Cody Kaczynski&lt;/font&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>upload.php
<a href="http://pastebin.com/CtM1LW13" rel="nofollow">http://pastebin.com/CtM1LW13</a></p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;SnowServer - Uploader&lt;/title&gt;
&lt;meta name="Description" content="DESC HERE" /&gt;
&lt;meta name="Keywords" content="KEYW0RDS HERE" /&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;link rel="stylesheet" href="http://www.codyleek.x90x.net/main.css" type="text/css" /&gt;
&lt;?php
session_start(); /// initialize session
include("passwords.php");
check_logged(); /// function checks if visitor is logged.  
?&gt;
&lt;/head&gt;
&lt;body background="http://i457.photobucket.com/albums/qq291/acebarachael/Wood-Background.jpg"&gt;
&lt;div id="wrapper"&gt;&lt;img src="http://www.uzumakinet.x90x.net/images/banner1.jpg"&gt;&lt;/img&gt;
&lt;div id="header"&gt;
&lt;div id="navbar"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/files.html"&gt;File Explorer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="webmail/index.html"&gt;Webmail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/#"&gt;Uploader&lt;/a&gt;&lt;/li&gt;
&lt;font color="FFFFFF"&gt;&lt;marquee&gt;Welcome to SnowServer!&lt;/marquee&gt;&lt;/font&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id="main"&gt;
&lt;center&gt;&lt;h2&gt;Uploading..&lt;/h2&gt;&lt;/center&gt;&lt;br /&gt;
&lt;center&gt;
&lt;?php
$folder = "files/";
$HTTP_POST_FILES = "";
if(isset($_FILES['filename']['tmp_name'])) // Check if $_FILES['filename']['tmp_name'] is there
{
        if (is_uploaded_file($_FILES['filename']['tmp_name']))  {  
                if (move_uploaded_file($_FILES['filename']['tmp_name'], $folder.$_FILES['filename']['name'])) {
                        Echo "Your file has been uploaded! You should probably tell Cody what you uploaded so he can get it in the right place. :)";
                } else {
                        Echo "Haha! You don't have access to do that.";
        }
        } else {
                Echo "Your upload has failed.";
        }
}
?&gt;
&lt;/center&gt;
&lt;/div&gt;
&lt;div id="footer"&gt;&lt;font color="FFFFFF"&gt;Coded and Designed by Cody Kaczynski | zenLayout by Cody Kaczynski | zenLayout: SnowServer Edition by Cody Kaczynski&lt;/font&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>All help is appreciated. :)</p>

<p>Also, I need it to generate a script into the page once the file has uploaded.
Say, if example.jpg was uploaded to /Cody/Pictures.
It would delete <h1>No files were found..</h1>
and replace it with:
File Name: $FileName
Download: </p>

<p>Can anyone do that? Thanks if you can!</p>
