title: for loop for each month of year
body: <p>I am trying to write a for loop in PHP to add to an HTML <code>&lt;select&gt;</code> tag dropdown, that allows people to pick their birth month.</p>
  <p>Heres my code which isn't working:</p>
  <pre><code>&lt;p&gt;
      &lt;label for=&quot;signup_birth_month&quot;&gt;Birthday:&lt;/label&gt;
      &lt;select name=&quot;signup_birth_month&quot; id=&quot;signup_birth_month&quot;&gt;
          &lt;option value=&quot;&quot;&gt;Select Month&lt;/option&gt;
          &lt;?php for ($i = 1; $i &lt;= 12; $i++){
              $month_name = date('F', mktime(0, 0, 0, $i, 1, 2011));
              echo '&lt;option value=&quot;'.$month_name.'&quot;'.$month_name.'&gt;&lt;/option&gt;';
          }?&gt;
      &lt;/select&gt;
  &lt;/p&gt;
  </code></pre>
  <p>How do I write a for loop that returns the name of each month in year?</p>