title: send array ajax.request prototype
body: <p>I'm stuck here to send an array to the PHP script via prototype ajax.request method.</p>
  
  <p>My array is constructed javascript side: it like like this</p>
  
  <pre><code>attributeArray = new Array();
  
  //This line of code is actually inside a loop 
  attributeArray[id] = value;
  //loop end
  new Ajax.Request(reloadurl, {
      method: 'post',
      parameters: {'id[]':attributeArray},
      onComplete: function(transport) {
      $('load-map-fields').innerHTML = "";
      $('load-map-fields').innerHTML = transport.responseText;
  
      }
      });
  </code></pre>
  
  <p>and at the PHP script I am getting this array </p>
  
  <pre><code>Array ( [id] =&gt; Array ( [0] =&gt; special_price [1] =&gt; tier_price ) )
  </code></pre>
  
  <p>Notice the index number for values <code>special_price</code> and <code>tier_price</code> these are <code>0</code> and <code>1</code> . These are not the actual indexes I passed, No matter whatever indexes I construct, It reindex them from <code>0</code>. This is not useful for me because I need actual index id as well as the value.</p>