prakash Posted January 9, 2008 Share Posted January 9, 2008 how can I loop array data from <input type="file" name="photos[]" /> <input type="file" name="photos[]" /> <input type="file" name="photos[]" /> on php so that I can upload every images from a foreach loop Link to comment https://forums.phpfreaks.com/topic/85152-looping-input-typefile/ Share on other sites More sharing options...
rajivgonsalves Posted January 9, 2008 Share Posted January 9, 2008 you will have to loop through the $_FILES array; Link to comment https://forums.phpfreaks.com/topic/85152-looping-input-typefile/#findComment-434442 Share on other sites More sharing options...
PFMaBiSmAd Posted January 9, 2008 Share Posted January 9, 2008 The php manual even has a section that talks about it - http://www.php.net/manual/en/features.file-upload.multiple.php and the User Contributed Notes section at that link has code to do it. Link to comment https://forums.phpfreaks.com/topic/85152-looping-input-typefile/#findComment-434499 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.