What I need to do is to get full image name of each image so that I can put image name in database...
But also want to limit the images too gif and jpeg
And limit size of each...
Any help would be greatfull...
It uploads fine..
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
move_uploaded_file($tmp_name, "upload/$name");
}
}
Part on form :
<tr >
<td height="25" > </td>
<td height="25" >Images if any</td>
<td height="19" align="left" >
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
</td>
</tr>