Is it possible to generate dynamic form_radio ? - 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: Is it possible to generate dynamic form_radio ? (/showthread.php?tid=47624) |
Is it possible to generate dynamic form_radio ? - El Forum - 12-15-2011 [eluser]Unknown[/eluser] Hello, I am trying to generate multiple forms in one submit. For example, I have a table with information about games on any sport, these are the fields (gameID, weekNum, gameTime, homeID, homeScore, visitorID, visitorScore). I want to use this table to generate the forms. Inside my view I am trying to generate the forms dynamically using the above mentioned table, so the selected team can be submitted to another results table. I am doing this in my view: Code: <div id="games_form"> The problem with this approach is that I am just able to select one team from the list, instead one for every game. This is my games_model Code: //retrieve all games This is my games controller, I am filtering the games by week with another function. Code: class Games extends CI_Controller { I will appreciate any comments or help. Thanks in advanced. |