title: jQuery serialize function with multiple values
body: <p>I try to use jQuery to post multiple values to PHP page, and then use that values as a single values.</p>
  
  <p>I start with code from Jquery site :</p>
  
  <pre><code>  &lt;form &gt;&lt;br&gt;
    &lt;select name="multiple" multiple="multiple"&gt;
     &lt;option selected="selected"&gt;Multiple&lt;/option&gt;
     &lt;option&gt;Multiple2&lt;/option&gt;
     &lt;option selected="selected"&gt;Multiple3&lt;/option&gt;
    &lt;/select&gt;
  
    &lt;br&gt;
  
   &lt;br&gt;
  
   &lt;/form&gt;
  
   &lt;p&gt;&lt;tt id="results"&gt;&lt;/tt&gt;&lt;/p&gt;
  
    &lt;script&gt;
       function showValues() {
       var str = $( "form" ).serialize();
       $( "#results" ).text( str );
                              }
      $( "input[type='checkbox'], input[type='radio']" ).on( "click", showValues );
      $( "select" ).on( "change", showValues );
     showValues();
      &lt;/script&gt;
  </code></pre>
  
  <p>Result is: <code>multiple=Multiple&amp;multiple=Multiple2</code>, and that is fine.</p>
  
  <p>Now mycproblem is how to post these values to <code>test.php</code> page, and then to use unique values, like this :</p>
  
  <pre><code>$multiple=[first value]
  $multiple2=[second value]
  etc...
  </code></pre>