bob_the _builder Posted May 2, 2006 Share Posted May 2, 2006 Hi,Using[code] <input type="file" name="<?php echo 'photo_filename[]'; ?>" size="30"> [/code]it only sends the first photo to the process page, how should it be to create the array?Thanks Link to comment https://forums.phpfreaks.com/topic/8923-array/ Share on other sites More sharing options...
zq29 Posted May 2, 2006 Share Posted May 2, 2006 No PHP is required at this stage...[code]<input type="file" name="photo_filename[]" size="30"> [/code] Link to comment https://forums.phpfreaks.com/topic/8923-array/#findComment-32781 Share on other sites More sharing options...
phporcaffeine Posted May 2, 2006 Share Posted May 2, 2006 [!--quoteo(post=370720:date=May 2 2006, 06:46 PM:name=bob_the _builder)--][div class=\'quotetop\']QUOTE(bob_the _builder @ May 2 2006, 06:46 PM) [snapback]370720[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hi,Using[code] <input type="file" name="<?php echo 'photo_filename[]'; ?>" size="30"> [/code]it only sends the first photo to the process page, how should it be to create the array?Thanks[/quote]Not quite sure what you mean here -If your trying to do a multiple file thing here then your almost right, you don't need the whole <?php bit either becuase all your doing is echoing literal text there, unless you meant ' $photo_filename[] '.<input type="file" name="photo_filename[]" size="30"><br /><input type="file" name="photo_filename[]" size="30"><br /><input type="file" name="photo_filename[]" size="30"><br /><input type="submit" name="sub" value="Upload"> Link to comment https://forums.phpfreaks.com/topic/8923-array/#findComment-32783 Share on other sites More sharing options...
bob_the _builder Posted May 2, 2006 Author Share Posted May 2, 2006 Hi,*edit*My bad, it wasnt writing to the database therefore not generating an id stoping the proper functionality.Thanks Link to comment https://forums.phpfreaks.com/topic/8923-array/#findComment-32794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.