var a=0;
function _add_more() {
var txt = "<br><input type=\"file\" name=\"item_file[]\"><br><input type=\"text\" name=\"text"+a+"\">";
document.getElementById("dvFile").innerHTML += txt;
alert(a);
a=a+1;
}
我正在使用多個文件上傳和多個標題。我無法將標題中的文本保存在數據庫中。你能請告訴正確的語法$_POST["text"]
,我應該在哪裏放一個,我是increementing。多個上傳未保存到數據庫
$insert=mysql_query("insert into image_upload set title='".$_POST["text"]."', image='".$filen."'") or die(mysql_error());