title: Drupal 6 Form "Radio" #return_value Not Working
body: <p>I am working with Drupal 6 and creating a module that involves a form submission.  I opted to use the #type "radio" as it allows me to dynamically create a table (which is necessary for display purposes).  </p>
  
  <p>I am outputting the returned values of each radio I have selected in the image. However, whenever I submit the form, the #default_value is returned rather than the #return_value.  </p>
  
  <p>Here is my code as well as a screenshot of the page.  Any help is greatly appreciated!</p>
  
  <p>======<a href="http://i.imgur.com/fbFmfwv.png" rel="nofollow">Image of the Problem Here</a>=======</p>
  
  <pre><code>function peereval_survey(&amp;$formstate, $numStudents)
  {
  drupal_add_css(drupal_get_path('module', 'peereval') .'/peereval.css');
  
  for ($rowNum = 1; $rowNum &lt;= $numStudents; $rowNum++)
  {
      for ($colNum = 1; $colNum &lt;= 5; $colNum++)
      {
          if ($rowNum == 1)
          {
              $form['v' . $colNum]['u' . $rowNum . ',v' . $colNum] = array
              (
                  '#prefix' =&gt; "&lt;tr&gt;&lt;td&gt;",
                  '#suffix' =&gt; "&lt;/td&gt;",
                  '#type' =&gt; 'radio',
                  '#title' =&gt; t($rowNum . ', ' . $colNum),
                  '#name' =&gt; 'u' . $rowNum,   
                  '#default_value' =&gt; 0,
                  '#return_value' =&gt; $colNum,
              );
          }           
          else if ($rowNum == 5)
          {
              $form['v' . $colNum]['u' . $rowNum . ',v' . $colNum] = array
              (
                  '#prefix' =&gt; "&lt;td&gt;",
                  '#suffix' =&gt; "&lt;/td&gt;&lt;/tr&gt;",
                  '#type' =&gt; 'radio',
                  '#title' =&gt; t($rowNum . ', ' . $colNum),
                  '#name' =&gt; 'u' . $rowNum,
                  '#default_value' =&gt; 0,
                  '#return_value' =&gt; $colNum,
              );
          }
          else
          {
              $form['v' . $colNum]['u' . $rowNum . ',v' . $colNum] = array
              (
                  '#prefix' =&gt; "&lt;td&gt;",
                  '#suffix' =&gt; "&lt;/td&gt;",
                  '#type' =&gt; 'radio',
                  '#title' =&gt; t($rowNum . ', ' . $colNum),
                  '#name' =&gt; 'u' . $rowNum,
                  '#default_value' =&gt; 0,
                  '#return_value' =&gt; $colNum,
              );
          }
      }
  }
  
  $form['numStudents'] = array
  (
      '#type' =&gt; 'hidden',
      '#value' =&gt; $numStudents
  );
  
  $form['submit'] = array
  (
      '#prefix' =&gt; '&lt;div id="submit"&gt;',
      '#suffix' =&gt; '&lt;/div&gt;',
      '#type' =&gt; 'submit',
      '#value' =&gt; t('Save'),  
  );
  
  return $form;
  }
  </code></pre>
  
  <p> </p>
  
  <pre><code>function peereval_survey_submit($form, &amp;$form_state)
  {
  $form_state['redirect'] = 'peereval/1/5/1';
  
  drupal_set_message("hi" . $form_state['values']['u1,v1'] . $form_state['values']['u2,v2'] . $form_state['values']['u3,v3'] . $form_state['values']['u4,v4'] . $form_state['values']['u5,v5']);
  
  return $form;
  }
  </code></pre>