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 Quote 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; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/85152-looping-input-typefile/#findComment-434499 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.