title: How to pass associative array to a php page in POST?
body: <p>I am trying to use Magento 1.9 XmlConnect module to save the billing address function. In xml connect there is an action to do this, <code>saveBillingAddressAction</code>. In <code>savebillingaddressAction</code> method one line is trying to access an array from the POST variables like following - </p>
  
  <pre><code>$data = $this-&gt;getRequest()-&gt;getPost('billing', array());
  </code></pre>
  
  <p>How I can pass an array from client side to server side in POST variable so that <code>billing</code> param have the array with the needed data?</p>
  
  <p>Magento repository - <a href="https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/XmlConnect/controllers/CheckoutController.php#L172" rel="nofollow">CheckoutController.php</a>.</p>