title: html dropdown form post to php
body: <p>I have a strange error with my form. I always get a Daily selection with a date of 01 Jan 2000. The code for the form is this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;body&gt;
      &lt;form name="mainForm" action="ReportForm.php" method="post"&gt;
        How Often to Generate Report: 
        &lt;select id="period" onchange="Change(this);"&gt;
          &lt;option selected="selected" value="0"&gt;Daily&lt;/option&gt;
          &lt;option value="1"&gt;Weekly&lt;/option&gt;
          &lt;option value="2"&gt;Monthly&lt;/option&gt;
        &lt;/select&gt;
  
        &lt;br /&gt;
  
        &lt;input type="submit" title="Submit"/&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>There are 3 more dropdowns like this for month, day, and year. I might have guessed that the selected="selected" had something to do with it, but the year 2000 is not an option. The default values for theses are January, 1, and 2012. I am thoroughly confused by this, and would appreciate any help.</p>
  
  <p>The PHP associated with this is:</p>
  
  <pre><code>&lt;?php
    require "Search.php";
    require "Schedule.php";
  
    Schedule( $_POST['period'],
                    mktime(23, 59, 59, $_POST['month'],
                           $_POST['day'], $_POST['year']) );
  
    Search( "param1", "param2", "param3", "test@testing.com" );
  
    exit();
  ?&gt;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>-rusty</p>