title: to get the value of selected month and print the dates
body: <pre><code>&lt;?php
      $month=array("January"=&gt;"01","February"=&gt;"02","March"=&gt;"03","April"=&gt;"04","May"=&gt;"05","June"=&gt;"06","July"=&gt;"07","August"=&gt;"08","September"=&gt;"09",
      "October"=&gt;"10","November"=&gt;"11","December"=&gt;"12");
  
      echo"&lt;select name='month'&gt;";
      echo"&lt;option&gt;-select-&lt;/option&gt;";
      foreach($month as $key=&gt;$value)
      {
          echo "&lt;option value='".$value."'&gt;".$key."&lt;/option&gt;"."&lt;br /&gt;";
      }
  
      echo"&lt;/select&gt;";
  
      $input_month=$month;    
      $mkt = mktime(0,0,0,$input_month,1,date("Y"))   ;
      $date2 = date("Y-m-d",$mkt);    
      $end2= date("Y")."-".$input_month."-".date('t', strtotime($date2));
  ?&gt;
  &lt;table&gt;
     &lt;tr&gt;
     &lt;?php while(strtotime($date2) &lt;= strtotime($end2)) {
          $day_num = date('d', strtotime($date2));
          $day_name = date('l', strtotime($date2));
          $date2 = date("Y-m-d", strtotime("+1 day", strtotime($date2)));
  
          echo "&lt;td&gt;$day_num &lt;br/&gt; $day_name&lt;/td&gt;";
     }
    ?&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>here i want that if for example i select the month 'May' then its value '05' i should get it and assign it to $input_month so that dates of  selected month with day name should be displayed.</p>