Welcome Guest, Not a member yet? Register   Sign In
Problems coding for form_radio()
#4

[eluser]Wayne Smallman[/eluser]
[quote author="mddd" date="1271779253"]You are mixing up the two uses of form_radio:
1. form_radio($name, $value, $checked_or_not);
2. form_radio($array_of_attributes);

If you provide an array for the attributes of the radio button (method 2), then you should not provide the name separately.
So your form code should be:
Code:
<?php echo form_radio($input_common['cash']); ?>
[/quote]
Hi! I just replied, but didn't see your reply first.

As I said, it's not totally clear in the documentation.

Thanks all the same.


Messages In This Thread
Problems coding for form_radio() - by El Forum - 04-20-2010, 04:21 AM
Problems coding for form_radio() - by El Forum - 04-20-2010, 05:00 AM
Problems coding for form_radio() - by El Forum - 04-20-2010, 05:54 AM
Problems coding for form_radio() - by El Forum - 04-20-2010, 05:55 AM
Problems coding for form_radio() - by El Forum - 04-20-2010, 12:53 PM
Problems coding for form_radio() - by El Forum - 04-21-2010, 12:27 PM
Problems coding for form_radio() - by El Forum - 04-21-2010, 02:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB