![]() |
form_input with id as an arrays and form_prep - 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: form_input with id as an arrays and form_prep (/showthread.php?tid=53308) |
form_input with id as an arrays and form_prep - El Forum - 07-18-2012 [eluser]Unknown[/eluser] It's easiest if I explain this by putting everything useful in a view: Code: <?php If I replace the input-as-array part with individual fields: Code: $count = 0; If I attempt to form_prep the $desc value manually with description[], it produces some messy results both in the front end and the saving back end. Is this actually a bug? I had a hard time searching for the best way of describing this, so it's more than likely I missed something (there were older posts about form_prep and quot for example). The code does work, so long as the form_input isn't an array. For the moment I think the best work around is to manually form_prep the data and not use form_input for this field, but if I could get it working properly that would be so much cleaner. Edit: Sorry, CodeIgniter 2.1.2, apache web services on both a FreeBSD server and an Debian server. |