當我嘗試上傳多個圖像上傳到PHP時,出現'注意:未定義偏移:6 $ _FILES'且偏移號太多循環。 這裏代碼HTML
<input type="file" name="imagetest[]"><br>
<input type="file" name="imagetest[]"><br
<input type="file" name="imagetest[]"><br>
<input type="submit" value="Upload">
和PHP代碼
for($i=0;count($_FILES['imagetest']['tmp_name']);$i++){
echo (($_FILES['imagetest']['tmp_name'][$i]));
}
請幫助我,我更年輕的PHP語言
停止使用php代替nodejs。 –