Test code:

function duhhhh(){
  $form['radio'] = array(
      '#type' => 'radios',
      '#options' => array(1 => 'two', 3 => 'four'),
    );
  $form['radio radio'] = $form['radio'];
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'submit',
  );
  return $form;
}

function duhhhh_submit($form_id, $form_values) {
  dsm($form_values);
}

Output:

    [radio] => 1
    [radio radio] => 
    [checkboxes checkboxes] => Array
        (
            [1] => 0
            [3] => 0
        )

    [op] => submit
    [submit] => submit
    [form_token] => dca5e9ecc84de689c5111f29680a2e1e
    [form_id] => duhhhh

Comments

pbland’s picture

I'm experiencing the same problem. Does anyone have a solution to this problem?

dpearcefl’s picture

Status: Active » Closed (won't fix)

Considering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.