php issue in passing an array to Paypal
<p>I have an array of variables that I passing to Paypal via . The problem I have is when the Paypal screen loads the items, qty, price section is empty. Here is the code snippet for the passing:- (arrays cart_stock and cart_price hold the data to pass, $tmp_cart_count hold the total number of items to pass)</p>

<pre><code>&lt;?php 
echo "&lt;form target='PayPal' action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'&gt;";
echo "&lt;input name='cmd' value='_xclick' type='hidden' /&gt;";
echo "&lt;input name='upload' value='1' type='hidden' /&gt;";
echo "&lt;input name='business' value='sales@danskvintage.com.au' type='hidden' /&gt;";

// other irrelevant variables are passed here //

$i=0;$count=1;
while ($i &lt; $tmp_cart_count)
    {
    echo "&lt;input name='custom' value='".$_SESSION['cart_stock'][$i]."' type='hidden' &gt;";
    echo "&lt;input name='item_name_".($count)."' value='".$_SESSION['cart_title'][$i]."' type='hidden' &gt;";
    echo "&lt;input name='quantity_".($count)."' value='1' type='hidden' &gt;";            
    echo "&lt;input name='amount_".($count)."' value='".$_SESSION['cart_price'][$i]."' type='hidden' &gt;";
    echo "&lt;input name='shipping_".($count)."' value='0' type='hidden' &gt;";
    $i++;
    $count++;
    }
echo "&lt;input type='submit' value='PayPal'&gt;";
echo "&lt;/form&gt;";
?&gt;
</code></pre>

<p>Any help would be much appreciated, as it has me stumped.</p>
