title: How to Pass the array values on query string in php
body: <p>I need your help.,</p>
  
  <p>How to pass the array values in query string...</p>
  
  <pre><code>&lt;?php 
                  foreach ( $Cart-&gt;getItems() as $order_code=&gt;$quantity ) :
                  $pname[]= $Cart-&gt;getItemName($order_code);
                  $item[]= $Cart-&gt;getItemPrice($order_code);
                  $qty[]=$quantity;
                  endforeach;
                  ?&gt;
                  &lt;form action='expresscheckout.php?amt=&lt;?php echo $total_price; ?&gt;&amp;item_name=&lt;?php echo $pname; ?&gt;&amp;unit=&lt;?php echo $item; ?&gt;&amp;quan=&lt;?php echo $qty; ?&gt;' METHOD='POST'&gt;
  &lt;input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='Check out with PayPal'/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is my code sample.,for the above sample code i have to pass the query string on my action url that is expresscheckout.php?amt=100.,etc...values are coming under the $pname[],$item[],$qty[].</p>
  
  <p><strong>Expecting output</strong> in expresscheckout.php</p>
  
  <p>expresscheckout.php?pname=product1,product2&amp;item=item1,item2&amp;qty=1,2,3....like this....</p>
  
  <p>Thanks in Advance....</p>