title: Js / Php - Am I sending this value correctly?
body: <p>I am trying to collect the index of my combo box.
  I would like to be able to change the index, and then have a bunch of fields changed based on the new index. Am I doing this right so far?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
       function getCombo(sel) {
       var value = sel.options[sel.selectedIndex]; 
       $.get(document, {type: value}); 
  }
  &lt;/script&gt;
  
  // Misc code here
  
  &lt;td class="bold"&gt;&lt;label for='addType'&gt;Select Type to Add : &lt;/label&gt;
      &lt;select name="addType" id="combo" onchange="getCombo(this)"&gt;
          &lt;option value="book"&gt;Book&lt;/option&gt;
          &lt;option value="author"&gt;Author&lt;/option&gt;
          &lt;option value ="publisher"&gt;Publisher&lt;/option&gt;
          &lt;option value="customer"&gt;Customer&lt;/option&gt;
      &lt;/select&gt;
  &lt;?php
      $type['type'] = $_GET['value'];
  ?&gt;&lt;/td&gt;
  </code></pre>