yes, I'm pretty sure we know about the slashes, but not too sure about the spaces, anyway, you are getting pretty cocky for someone in need of help, chill out
any particular reason you have to do this in the function, I think this may have something to do with your problems, you could use if's to separate which ones were actually used, it may act the same, but if what weed is saying is correct, then ifs seem to be better
if ($userfile && !$userfile2 && !userfile3)
{
//do upload for $userfile only
//by do upload i mean put the actual code here
}
else if (!$userfile && $userfile2 && !userfile3)
{
//do upload $userfile2
//by do upload i mean put the actual code here
}
else if (!$userfile && !$userfile2 && userfile3)
{
//do upload for $userfile3
//by do upload i mean put the actual code here
}
else if ($userfile && $userfile2 && !userfile3)
{
//do upload for $userfile and $userfile2
//by do upload i mean put the actual code here
}
else if (!$userfile && $userfile2 && userfile3)
{
//do upload for $userfile2 and $userfile3
//by do upload i mean put the actual code here
}
else if ($userfile && !$userfile2 && userfile3)
{
//do upload for $userfile and $userfile3
//by do upload i mean put the actual code here
}
else if ($userfile && $userfile2 && userfile3)
{
//do upload for all $userfile's
//by do upload i mean put the actual code here
}
else
{
}
this should get all combos of selection
oh, and btw is there any special reason, you are needing to input the target name, just curious