title: Populate a PHP variable from a listbox value with AJAX
body: <p>I retrieve the value of a select box in this way which goes to populate a input field:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready( function ()
  {
  
      $('#dropdown_selector').change(function()
      {
          var option = $(this).find('option:selected').val();
          $('#showoption').val(option);
      });
  });
  &lt;/script&gt;   
  
   &lt;select id="dropdown_selector"&gt;
          &lt;option value="Option1"&gt;Option1&lt;/option&gt;
          &lt;option value="Option2"&gt;Option2&lt;/option&gt;
          &lt;option value="Option3"&gt;Option3&lt;/option&gt;
      &lt;/select&gt;
  
  
      &lt;label&gt;Value&lt;/label&gt;
        &lt;input type="text" name="name" id="showoption" disabled="disabled" /&gt;      
      &lt;/label&gt;
  </code></pre>
  
  <p>But my problem is how to retrieve that value and use it directly in a PHP variable,instead of populating the input field(with id showoption).</p>
  
  <p>Something similar as:</p>
  
  <p>$variable=(var selected in select box)</p>
  
  <p>Thanks for your help!!!</p>