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) Quote 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 Quote 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.. Quote Link to comment https://forums.phpfreaks.com/topic/243241-file-upload-fields-array/#findComment-1249383 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.