title: Send an Array with Ajax and receive it in ASP Classic page
body: <p>I need to pass an array with AJAX in a ASP page.<br>
  I tried passing it as GET to see the data that it sends and i noticed that the ASP receive only the LAST record of the array.<br>
  How can i send and receive the whole array? (preferably with POST method)</p>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>function editar(i) {
      arr=[];
      j=0;
      for (n=2; n&lt;=9; n++) {
          arr[j]=$("#"+i+"-"+n).val(); //saves in the array all the field of a table's row
      }
      $.ajax ({
          url:"page.asp",
          data: { arr:arr },
          type:"POST"
      }).done(function(msg){
          alert(msg)
      })
  }
  </code></pre>
  
  <p><strong>ASP page.asp</strong></p>
  
  <pre><code>&lt;%  
      redim arr(10)
      for i=0 to 9
          arr(i)=request.Form("arr[]") 'Tried without the square brackets too
      next
  %&gt;
  </code></pre>