title: Cakephp ctp create form input - php
body: <p>i am creating a calender prog, using cakephp
  when calling a method disp with month and year as params, it should disp the calender..</p>
  
  <p><strong>this my index.ctp//$month int 1 to 12 //$mon[12]=='December'</strong></p>
  
  <pre><code>&lt;?php echo $form-&gt;create('Calendar', array('action' =&gt; 'disp', 'class' =&gt; 'normal')); ?&gt;
   &lt;?php 
    echo $form-&gt;input('month', array('options' =&gt; $mon, 'empty'=&gt;$mon[$month]));
    echo $form-&gt;input('year', array('options' =&gt; $yr, 'empty' =&gt; $year));
   ?&gt;
  &lt;?php echo $form-&gt;end('Submit'); ?&gt; 
  </code></pre>
  
  <p>month contains jan to dec and years 1990 to 2010</p>
  
  <p><strong>this is disp method</strong></p>
  
  <pre><code>function disp()
   {
    $month= $this-&gt;data['Calendar']['month'];
    $year= $this-&gt;data['Calendar']['year'];
    $this-&gt;redirect(array('controller' =&gt; 'calendars', 'action' =&gt; 'index',$month,$year));
   }
  </code></pre>
  
  <p>when calling function it displays the calender perfectly
  my prob is the loaded month should select in drop down list
  by default it shows the first value
  i used <code>'empty'=&gt;$mon[$month]</code> this disp the month but duplicate..</p>
  
  <p>what to do to select the month in the list, which was displaying at current??</p>