Quote:
Originally Posted by xXziroXx
PHP Code:
for (i = 0; i < numberofradiobuttons; i ++) {
if (("Radio_Button" @ i).checked == true) temp.checked ++;
}
if (temp.checked == numberofradiobuttons) {
// all buttons are checked!
}
Just an example on how to check if all of them are checked.
|
Radio buttons are only supposed to allow one to be selected from a group.
This might be more accurate:
PHP Code:
temp.buttons = {"Radio_Button1", "Radio_Button2", "Radio_Button3"};
for (temp.button: temp.buttons)
{
if ((@ temp.button).checked)
{
// This is the checked button, so do whatever and stop the loop
break;
}
}