title: Send multiple fields with the same name via jQuery
body: <p>how to send multiple fields with the same name via jQuery like this:</p>
  
  <pre><code>&lt;input type="text" name="text[]" /&gt;
  &lt;input type="text" name="text[]" /&gt;
  &lt;input type="text" name="text[]" /&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>   function upload() {
      $.post('example.php', { text[]: Form.text[].value },
        function(output) {
        $('#result').html(output).show();
        });
      }
  </code></pre>
  
  <p>upload.php:</p>
  
  <pre><code>text[$i] = $_POST['text'][$i];
  </code></pre>
  
  <p>thank you,</p>
  
  <p><em><strong>EDIT: correct my question.</em></strong></p>