hi all,
i'm working on a multiple file upload.
on a upload page i generate rows with picture and filename
for ($i=0; $i<$Files; $i++){
?>
<p>
<input type="file" name="picture[]" size="20">
<font face="Arial, Helvetica, sans-serif" size="2">Name</font>
<input type="text" name="filename[]">
</p>
<?
}
?>
on the target page the values and files depending on picture will be stored to table/directory
if (($picture != "none") and ($err == false)) {
for ($i=0; $i < count($picture); $i++) {
//get array-value of picture
//store values to db
$return = mysql_query("INSERT INTO files (ID,filename,file) VALUES('$currID','$filename','$picture_name[$i]')", $link);
if ($return == false) {
Error("Die Datenbank konnte nicht aktualisiert werden.<br>".mysql_error());
}
if (!copy($picture[$i], "files/$picture_name[$i]")) {
Error("Datei konnte nicht kopiert werden.<br>".mysql_error());
}
}
}
my problem ins now to get the value of $filename - it will be stored like this in the table "Array" how can i get the array value before saving?
greets,
chris