title: Paying for multiple items in paypal
body: <p>I'm doing the following to add multiple items to Paypal but its not working. None of the items get added. However, if I add just one item without adding appending "_1","_2" to item_name etc then everything works perfectly. What am I doing wrong in this case?</p>
  
  <p><strong>Form</strong></p>
  
  <pre><code>&lt;form name="paypal_auto_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"&gt;
  
  &lt;input type="hidden" value="2" name="rm"&gt;
  &lt;input type="hidden" value="_xclick" name="cmd"&gt;
  &lt;input type="hidden" value="USD" name="currency_code"&gt;
  &lt;input type="hidden" value="myname@gmail.com" name="business"&gt;
  &lt;input type="hidden" value="http://[::1]/d/paypal/success" name="return"&gt;
  &lt;input type="hidden" value="http://[::1]/d/paypal/cancel" name="cancel_return"&gt;
  &lt;input type="hidden" value="http://[::1]/d/paypal/ipn" name="notify_url"&gt;
  
  &lt;input type="hidden" value="Laptop" name="item_name_1"&gt;  
  &lt;input type="hidden" value="1" name="custom_1"&gt;
  &lt;input type="hidden" value="1" name="item_number_1"&gt;
  &lt;input type="hidden" value="500.00" name="amount_1"&gt;
  &lt;input type="hidden" value="1" name="quantity_1"&gt;
  
  &lt;input type="hidden" value="Laptop" name="item_name_2"&gt;
  &lt;input type="hidden" value="1" name="custom_2"&gt;
  &lt;input type="hidden" value="1" name="item_number_2"&gt;
  &lt;input type="hidden" value="500.00" name="amount_2"&gt;
  &lt;input type="hidden" value="1" name="quantity_2"&gt;
  
  &lt;p&gt;&lt;input type="submit" value="Click here" name="pp_submit"&gt;&lt;/p&gt;&lt;/form&gt;
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <p><a href="https://i.stack.imgur.com/RRxsN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RRxsN.png" alt="http://i.imgur.com/FYdsOpE.png"></a></p>