title: Symfony 1.4 pass value from select without refreshing the page
body: <p>i try to pass some value using Symfony 1.4 froms.</p>
  
  <p>What i try to do is to pass value from SELECT to $variable without refreshing the page. </p>
  
  <p><strong>CreateForm.php</strong></p>
  
  <pre><code> $this-&gt;setWidget('cycle', new sfWidgetFormChoice(array(
          'label' =&gt; __( 'Cycle'),
          'choices' =&gt; $this-&gt;getCycles()
      ), array(
          'class' =&gt; 'inputText',
      )));
  
      $this-&gt;setValidator( 'cycle', new sfValidatorChoice( array(
          'required' =&gt; true,
          'choices' =&gt; array_keys( $this-&gt;getCycles())
      ), array(
      )));
  
      $this-&gt;setWidget('startCycle', new sfWidgetFormChoice(array(
          'label' =&gt; __( 'Start cycle' ),
          'choices' =&gt; ''
      ), array(
          'class' =&gt; 'inputTextshort',
      )));
  
      $this-&gt;setValidator( 'startCycle', new sfValidatorChoice( array(
          'required' =&gt; true,
          'choices' =&gt; ''
      ), array(
      )));
  
      $this-&gt;setWidget('endCycle', new sfWidgetFormChoice(array(
          'label' =&gt; __( 'End cycle' ),
          'choices' =&gt; ''
      ), array(
          'class' =&gt; 'inputTextshort',
      )));
  
      $this-&gt;setValidator( 'endCycle', new sfValidatorChoice( array(
          'required' =&gt; true,
          'choices' =&gt; ''
      ), array(
      )));
  </code></pre>
  
  <p>And some functions in <strong>CreateForm.php:</strong></p>
  
  <pre><code>public function getCycles()
  {
      return array(
          'DAY'   =&gt; 'DAY',
          'WEEK'  =&gt; 'WEEK',
          'MONTH' =&gt; 'MONTH',
          'YEAR'  =&gt; 'YEAR'
      );
  }
  
  public function getCyclesValues() {
  
      $arrCyclesValues = array(
          'DAY' =&gt; array(
              'start' =&gt; range(0,23),
              'end'   =&gt; range(0,23),
          ),
          'WEEK' =&gt; array(
              'start' =&gt; range(1,7),
              'end'   =&gt; range(1,7),
          ),
          'MONTH' =&gt; array(
              'start' =&gt; range(0,13),
              'end'   =&gt; range(0,13), 'can_be_empty' =&gt; true,
          ),
          'YEAR' =&gt; array(
              'start' =&gt; range(1,365),
              'end'   =&gt; range(1,365),
          ),
      );
  
      $start_day_cycyle   =  $arrCyclesValues['DAY']['start'];
      $stop_day_cycyle    =  $arrCyclesValues['DAY']['stop'];
      $start_week_cycyle  =  $arrCyclesValues['WEEK']['start'];
      $stop_week_cycyle   =  $arrCyclesValues['WEEK']['stop'];
      $start_month_cycyle =  $arrCyclesValues['MONTH']['start'];
      $stop_month_cycyle  =  $arrCyclesValues['MONTH']['stop'];
      $start_year_cycyle  =  $arrCyclesValues['YEAR']['start'];
      $stop_year_cycyle   =  $arrCyclesValues['YEAR']['stop'];
  
  } 
  public function getCycle() {
  
  
  }
  </code></pre>
  
  <p>Basicly, view give me possibility to check one of four Cycles:</p>
  
  <p><a href="http://i.imgur.com/emDqOv1.png" rel="nofollow">http://i.imgur.com/emDqOv1.png</a></p>
  
  <p>When i check one of 4 values, i need to catch it without refreshing the page, and put it in some $variable to getCycle() method of CreateForm.php script.</p>
  
  <p>Any help will be appreciated, thanks .. </p>