title: optgroup get in php label associated
body: <p>I have following code in a html form </p>
  
  <pre><code>&lt;select name="category" class="input" onchange="ShowTB(this,'suggest');"&gt;
        &lt;option value="0" selected="selected"&gt;
          [choose yours]
        &lt;/option&gt;
        &lt;optgroup label="Item"&gt;
        &lt;option value="SubItem1"SubItem1&lt;/option&gt;
      &lt;option value="SubItem2"&gt;SubItem2&lt;/option&gt;
    &lt;/optgroup&gt;
        &lt;option value="Item2"&gt;Item2&lt;/option&gt;
        &lt;optgroup label="Item3"&gt;
       &lt;option value="SubItem4"SubItem4&lt;/option&gt;
       &lt;option value="SubItem5"&gt;SubItem5&lt;/option&gt;
    &lt;/optgroup&gt;
        &lt;option value="Item4"&gt;Item4&lt;/option&gt;
  &lt;option value="Item5"&gt;Item5&lt;/option&gt;
  &lt;option value="Item6"&gt;Item6&lt;/option&gt;
  &lt;option value="Item7"&gt;Item7&lt;/option&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>in php i get the value of field  selected with:</p>
  
  <pre><code>$category = $_POST['category'];
  </code></pre>
  
  <p>in this mode if i select in the form ie: SubItem1 , in php i get value SubItem1 but i want also get associated label ie: Item  or if i select SubItem5 i get SubItem5 but i want also get associated label ie: Item3
  How to ?</p>