Ok, this is gonna look stupid to many of you, but it's the only code I can come up with (which needless to say doesn't work..) NEED HELP!
<part of a form>
print "\n<br><INPUT NAME=\"$folder\" TYPE=\"text\" SIZE=\"35\"><br>";
print "\n<br><INPUT NAME=\"the_file\" TYPE=\"file\" SIZE=\"35\"><br>";
print "\n<input type=\"submit\" Value=\"Upload\">";
<end part of a form>
<copy file and create folder>
function upload($the_file) {
global $the_file_name;
$the_path = "../upload/files/$folder/";
mkdir ("$the_path", 0775);
$error = validate_upload($the_file);
if ($error) {
form($error);
} else {
if (!@copy($the_file, $the_path . "/" . $the_file_name)) {
form("\n<b>There was an error, check the path to and the permissions for the upload directory</b>");
} else {
list_files();
form();
}
}
} # END upload
Any suggestion will be very appreciated
!!