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 Quote Link to comment 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] Quote Link to comment 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"> Quote Link to comment 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 Quote Link to comment 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.