title: Yii Radio Buttons
body: <p>I am using radio buttons in Yii and no matter what I do I can't get the value of the selected button to post. I am sure its just something simple. I am NOT using radioButtonList because I want each button to exist in its own div with an image above it. </p>
  
  <p>Here is my code from the view...</p>
  
  <pre><code>&lt;?php $this-&gt;pageTitle=Yii::app()-&gt;name; ?&gt;
  
  &lt;h1&gt;Welcome to &lt;i&gt;&lt;?php echo CHtml::encode(Yii::app()-&gt;name); ?&gt;&lt;/i&gt;&lt;/h1&gt;
  
  &lt;div class="form"&gt;
  &lt;?php $form=$this-&gt;beginWidget('CActiveForm', array(
  'id'=&gt;'lead_form',
  'enableAjaxValidation'=&gt;false,
  )); ?&gt;
  &lt;h3&gt;Choose Your Prize!&lt;/h3&gt;
  
   &lt;div id="prizes"&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;Paypal&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;1)); ?&gt;
  &lt;/div&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;Check&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;2)); ?&gt;
  &lt;/div&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;AlertPay&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;3)); ?&gt;
  &lt;/div&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;Iphone 4&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;4)); ?&gt;
  &lt;/div&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;Ipad 2&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;5)); ?&gt;
  &lt;/div&gt;
  &lt;div class="prize"&gt;
  &lt;h3&gt;Custom&lt;/h3&gt;
  &lt;?php echo $form-&gt;radioButton($model,'user_prize',array('value'=&gt;6)); ?&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;h3&gt;Enter Your Email&lt;/h3&gt;
  &lt;div id="mainemail"&gt;
  &lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'user_email'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'user_emhttp://stackoverflow.com/editing-    helpail'); ?&gt;
      &lt;?php echo $form-&gt;error($model,'user_email'); ?&gt;
  &lt;/div&gt;
  
  &lt;div&gt;
      &lt;?php echo $form-&gt;errorSummary($model); ?&gt;
  &lt;/div&gt;
  
  &lt;div class="row buttons"&gt;
      &lt;?php echo CHtml::submitButton('Submit'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  endWidget(); ?>
  
  <p></p>