kusarigama
Technical User
Hi all,
I' ve got a problem concerning multiple file uploads.
The files won't be copied to my location.
Here is a snippet of my code:
thanx in advance
Olli
..html stuff
<input name=userfile[] type=file>
<input name=userfile[] type=file>
<input name=userfile[] type=file>
while(list($key) = each($userfile))
{
if(is_uploaded_file($userfile[$key]))
{
..do something
}
}
while(list($key) = each($userfile))
{
if(empty($userfile_name[$key]))
{
continue;
}
else
{
move_uploaded_file($userfile[$key],$destination);
}
}
}
I' ve got a problem concerning multiple file uploads.
The files won't be copied to my location.
Here is a snippet of my code:
thanx in advance
Olli
..html stuff
<input name=userfile[] type=file>
<input name=userfile[] type=file>
<input name=userfile[] type=file>
while(list($key) = each($userfile))
{
if(is_uploaded_file($userfile[$key]))
{
..do something
}
}
while(list($key) = each($userfile))
{
if(empty($userfile_name[$key]))
{
continue;
}
else
{
move_uploaded_file($userfile[$key],$destination);
}
}
}