repopulating select multiple form element - 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: repopulating select multiple form element (/showthread.php?tid=20616) |
repopulating select multiple form element - El Forum - 07-15-2009 [eluser]gigas10[/eluser] I'm having a hard time trying to figure out how to repopulate a select multiple form field if I find errors and I'm redirected back to the page with the form. How exactly do I grab all the values that were in the select field? I know once I recieve the post data, I can just foreach through it, but it seems that codeigniter does not work like this for post back data. Any help is much appreciated and this is my current code: Code: <select id='root_cause' name='root_cause' multiple="multiple"> Yes I did post something similar to this before, but my problem was never solved, just completely sidetracked. |