A few more clues, these and google will solve the problem for you. This is for uploading multiple images, and is copied and pasted from what I just made. I'm new to PHP so this might not be perfect but it works fine.
The html bit
<form action="image.php" method="post" enctype="multipart/form-data">
<input name="image[]" type="file" />
<input name="image[]" type="file" />
<input type="submit" value="Send files">
</form>
The php bit
for ($i = 0; $i <= 5; $i++) {
$str = $_FILES['image']['name'][$i];
if (strlen($str) > 0) {
// Get the file information
$name = $_FILES['image']['name'][$i];
$type = $_FILES['image']['type'][$i];
$tmpFilename = $_FILES['image']['tmp_name'][$i];
$error = $_FILES['image']['error'][$i];
$size = $_FILES['image']['size'][$i];
// Weed out the non-image files
$newImageId = null;
if ($type == "image/gif" || $type == "image/jpeg" || $type == "image/png") {
$newImageId = addImage($headphoneId, "tmpfilename", $userId);
} else {
$newImageId = null;
}
}
}