Hello.
I have at my homepage a field to upload one image to the server, now i would like to give the user the option to upload more than one single image, like this screenshot:

The problem is, that i don´t know how can I create a vector to get all the files and send to the server.
The HTML code with the field input:
<form action="index.php" method="post" name="form1">
<tr>
<input type="hidden" name="fuseaction" value="b_usados.act_add">
<td align="left"><input type="file" name="file"></td>
</tr>
<tr><td><input type="submit" value="Enviar Foto" class="forum03">
</td></tr>
</form>
The php code to insert the files at the server:
// Where the file is going to be placed
$target_path = "upimage/";
$target_path = $target_path . basename( $_FILES['file[]']['name']);
if(move_uploaded_file($_FILES['file[]']['tmp_name'], $target_path)) {
echo "O arquivo ". basename( $_FILES['file[]']['name']).
" foi enviado!";
} else {
echo "Ocorreu um erro ao enviar o arquivo, tente novamente!";
}
header('location: index.php?fuseaction=b_usadas.adicionar');
}
Thanks for all kind of help!
Have a nice day.
Att, Rodrigo Ferrari