Having a bit a trouble with this one. I know a couple things for sure. The form is posting however if(!empty($FILES[images])) doesn't seem to be working for me. When I try and upload a few files, nothing returns. As you can see below I debugged it using print_r($FILES); and when I try and upload anything it returns empty when I guess it should upload and display the array.
<?
if(isset($_POST[s9]))
{
//manage files
if(!empty($_FILES[images]))
{
while(list($key,$value) = each($_FILES[images][name]))
print_r($_FILES);
die();
{
if(!empty($value))
{
$NewImageName = $t."_".$value;
copy($_FILES[images][tmp_name][$key], "images/userpics/".$NewImageName);
$MyImages[] = $NewImageName;
}
}
if(!empty($MyImages))
{
$ImageStr = implode("|", $MyImages);
}
}
else
{
$ImageStr = $_POST[OldImages];
}
}
?>
//update some db stuff
//post action blah..
<input type=file name=\"images[]\" size=31><br>
<input type=file name=\"images[]\" size=31><br>
<input type=file name=\"images[]\" size=31><br>
/submit code blah..