![]() |
[SOLVED] Populate the value of an input field with $_FILES['field']['name']; - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [SOLVED] Populate the value of an input field with $_FILES['field']['name']; (/showthread.php?tid=45988) |
[SOLVED] Populate the value of an input field with $_FILES['field']['name']; - El Forum - 10-13-2011 [eluser]Ludovic-r[/eluser] I need to retrieve in an Array the value of an upload input field, let me explain : I have these inputs fields : Code: <input type='text' name='field["+ j++ +"]' value='' data-kind='title' /> I print_r the field array from those fields and get that : Code: Array instead of : Code: Array I need to have my filenames in my array, how can I have this second array? I've tried a merge but I need to preserve the place of each fields in the array like the order of each input in the form (example : if the upload field is generated at the first place of the form I need to keep that information in the Array ([0] => image1.jpg [1] => title1 and so on) Any would help would be very very appreciated!! I'm stuck since few days on that ![]() |