Jump to content

file upload fields (array)


UnknownPlayer

Recommended Posts

Hi,

need help with input type=file but 3 that fields with same name(array):

<input name="slike[]" type="file" />
<input name="slike[]" type="file" />
<input name="slike[]" type="file" />
<input name="slike[]" type="file" />
<input name="slike[]" type="file" />

(im doing this becouse i have button to add more file upload fields, so i need to put name as array "slike[]")

 

Now, how can i get:

$_FILES['slike']['name'];

$_FILES['slike']['tmp_name'];

from each of this input fields(file upload) ? (with for or while)

Link to comment
https://forums.phpfreaks.com/topic/243241-file-upload-fields-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.