• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repopulating radio buttons

#1
[eluser]Marcky[/eluser]
Hi guys,

after some research over here, I haven't found a solution yet for this issue.

I'm using the form helper and the form validation class. Validation and repopulating data works fine except with radio buttons.

Here's the code:

Code:
echo form_radio('fieldname', 'value1', set_radio('fieldname', 'value1', TRUE);
echo form_radio('fieldname', 'value2', set_radio('fieldname', 'value2');

I've read several threads mixing the classic html radio codes with set_radio, but i'd like to keep using the form helper. Even tried to set a validation rule for this buttons but this has no effect either.

I'm also var_dumping $post and it never shows any selection of radio buttons but the text inputs appear perfectly. Any ideas?

Thanks!


Messages In This Thread
Repopulating radio buttons - by El Forum - 09-17-2012, 05:21 AM
Repopulating radio buttons - by El Forum - 09-17-2012, 05:45 AM
Repopulating radio buttons - by El Forum - 09-17-2012, 10:03 AM
Repopulating radio buttons - by El Forum - 09-18-2012, 03:01 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.