title: Retrieving data submitted with Yii's CActiveForm
body: <p>I am trying to retrieve the data from a form created using a widget for CActiveForm.  However, when I click on the submit button, no data is written to targeted Url.  How do I obtain the submitted form data?</p>
  
  <pre><code>&lt;p&gt;Please list the ages of the members of your household:&lt;/p&gt;
  
  &lt;div class="form offset3"&gt;
      &lt;?php
      $form = $this-&gt;beginWidget('CActiveForm', array(
          'id' =&gt; 'survey',
          'enableClientValidation' =&gt; true,
          'enableAjaxValidation' =&gt; true,
          'action'=&gt;Yii::app()-&gt;createUrl('//survey_resp'),
          'clientOptions' =&gt; array(
          'validateOnSubmit' =&gt; true,
          ),
          'htmlOptions' =&gt; array(
          'class' =&gt; 'form-horizontal',
          ),
  ));
  ?&gt;
  
      &lt;div class="row"&gt;
          &lt;?php echo $form-&gt;labelEx($model, 'age_1'); ?&gt;
          &lt;?php echo $form-&gt;textField($model, 'age_1'); ?&gt;
          &lt;?php echo $form-&gt;error($model, 'age_1'); ?&gt;
      &lt;/div&gt;
  
      &lt;div class="row"&gt;
          &lt;?php echo $form-&gt;labelEx($model, 'age_2'); ?&gt;
          &lt;?php echo $form-&gt;textField($model, 'age_2'); ?&gt;
          &lt;?php echo $form-&gt;error($model, 'age_2'); ?&gt;
      &lt;/div&gt;
  
      &lt;div class="row rememberMe"&gt;
          &lt;?php echo $form-&gt;checkBox($model, 'resp_re'); ?&gt;
          &lt;?php echo $form-&gt;Label($model, 'resp_re'); ?&gt;
          &lt;?php echo $form-&gt;error($model, 'resp_re'); ?&gt;
      &lt;/div&gt;
  
      &lt;div class="row buttons"&gt;
          &lt;?php echo CHtml::submitButton('submit'); ?&gt;
      &lt;/div&gt;
  
      &lt;?php $this-&gt;endWidget(); ?&gt;
  </code></pre>