UnknownPlayer Posted July 30, 2011 Share Posted July 30, 2011 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 More sharing options...
PFMaBiSmAd Posted July 30, 2011 Share Posted July 30, 2011 See Example #3 at this link - http://www.php.net/manual/en/features.file-upload.post-method.php Link to comment https://forums.phpfreaks.com/topic/243241-file-upload-fields-array/#findComment-1249271 Share on other sites More sharing options...
UnknownPlayer Posted July 30, 2011 Author Share Posted July 30, 2011 Thanks.. Link to comment https://forums.phpfreaks.com/topic/243241-file-upload-fields-array/#findComment-1249383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.