Help optimizing form code (checking IDs and radio buttons) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Help optimizing form code (checking IDs and radio buttons) (/showthread.php?tid=29786) |
Help optimizing form code (checking IDs and radio buttons) - El Forum - 04-21-2010 [eluser]Wayne Smallman[/eluser] Hi guys! I've had to create a load of messy code to get around problems I'm having with set_radio(). What I'd really appreciate is any advice as to how this code might be tidied up using any pre-build functions to replace my code. The bulk of the problems I'm having revolve around error checking, which all appears to work fine except for the record ID and radio buttons. The following is the code I've used to work out which radio values were checked in the previous form submission: Code: // define default radio button values on the first pass Code: // if there's no URL parameter for the entry ID... Any help would be greatly appreciated! Help optimizing form code (checking IDs and radio buttons) - El Forum - 04-21-2010 [eluser]vitoco[/eluser] Code: // THIS CODE IS SMALLER ======================================================== Saludos Help optimizing form code (checking IDs and radio buttons) - El Forum - 04-22-2010 [eluser]Wayne Smallman[/eluser] Thanks for the feedback. Again, much appreciated. |