title: PHP: Request the values of a HTML form drop down list
body: <p>I have a HTML form which is using a simple PHP <code>mail()</code> script to send its contents to an email address. I have just implemented a drop down list:</p>
  
  <pre><code>&lt;select name="event"&gt;
    &lt;option name="event1" value="event1"&gt;Event 1&lt;/option&gt;
    &lt;option name="event2" value="event2"&gt;Event 2&lt;/option&gt;
    &lt;option name="event3" value="event3"&gt;Event 3&lt;/option&gt;  
  &lt;/select&gt;
  </code></pre>
  
  <p>But am struggling to find a way to send the chosen item via mail()</p>
  
  <p>I have tried using the name of the select element:</p>
  
  <pre><code>$event= $_REQUEST['event'] ;
  </code></pre>
  
  <p>and the names of the option elements:</p>
  
  <pre><code>$event1= $_REQUEST['event1'] ;
  $event2= $_REQUEST['event2'] ;
  $event3= $_REQUEST['event3'] ;
  </code></pre>
  
  <p>But these dont seem to work for me. Does anyone know of the correct way to retrieve and send info via the selector list? Thanks</p>