title: PHP get dropdownlist select option value
body: <p>In my dropdownlist I have two different values for each option. How can I retrieve both? Let me illustrate what I mean.</p>
  
  <pre><code>&lt;select name="my_ddl"&gt;
    &lt;option value="&lt;?php $value_Id ?&gt;"&gt;&lt;?php $value_text ?&gt;&lt;/option&gt;
    &lt;option value="&lt;?php $value_Id ?&gt;"&gt;&lt;?php $value_text ?&gt;&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When the form is posted, I want to be able to get both the $value_id and $value_text of the selected option. How can I do this?</p>
  
  <p>$_POST['my_ddl'] only gets one value not both.</p>
  
  <p>In asp.net I could do this simply by referring to my_ddl.Value and my_ddl.Text.</p>
  
  <p>Thank you!</p>