Cgraz
Thanks for your help...forgive my ignorance, but now I'm really confused. Below is what I'm using to process the file upload. This works, but how could it work with multiple files? I tried a series of else statements like 'if ($file1)...' 'if ($file2), etc., naming the input field appropriately, but that kept forcing errors. The use of $_POST in your code would completely change this setup, wouldn't it? IF you can help clarify, I'd appreciate it! Here's my code that works:
$path_to_upload_dir = "../../images/user";
if($file){
print("File name: $file_name<P>/n");
print("File size: $file_size bytes<P>/n");
if(copy($file, "$path_to_upload_dir/$file_name")){
$connect = mysql_connect ($hostname, $username, $password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "UPDATE images SET content_1='$file_name' WHERE id='1'";
mysql_query($query);
print("Your File was uploaded successfully - continue selecting images.");
}else{
print("ERROR, your file was not successfully uploaded");
}
unlink($file);
mysql_close($connect);
}
?>