set_radio() function not repopulating my radio buttons. Can't figure out why |
[eluser]iamzvonko[/eluser]
Well, not so fast. I was really excited when I saw that last reply last night because it seemed like just a stupid programmer error. I can deal with that. I had shut down my PC by then and I haven't been able to get back to it until now (gotta work for a living during the day). So I put in the echo but STILL no luck. Then I went back to basics. I built the form controller and view as described in CI documentation here. I just added some radio buttons explicitly (without loop as in my code) and it repopulated the proper radio button on submit. Then I added another radio button group but generated it with a loop this time. Worked like a charm also. As long as I had an empty validation rule in controller. That made me think "maybe I just typed something wrong in my validation rule". Checked and checked but I just don't see it. Sorry for the long post but I'm pulling out what little hair I have left. Any help would be greatly appreciated. Here's the sample form controller and view that works just fine FORM CONTROLLER Code: <?php FORM VIEW Code: <html> Now here are snippets of my code that does NOT work: CONTROLLER Code: ... VIEW Code: ... |
Messages In This Thread |
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-17-2012, 08:30 PM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-17-2012, 09:29 PM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-17-2012, 09:46 PM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-17-2012, 10:16 PM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-18-2012, 07:15 PM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-19-2012, 05:03 AM
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-19-2012, 05:02 PM
|