how pass multiple values to paypal. I used it in paypal submission page
<input type="hidden" name="custom" value="id_cart={$id_cart}&option={option}" />
I get
$_POST['custom'] = id_cart=534&option=1620850004 ,
how I get it separately like
$_POST['id_cart'] =534 , $_POST['option'] =1620850004.
The name attribute on your form fields will become the key server-side, simply break your current hidden field up with new names:
You should also be escaping the values on the page, I’m assuming you’re using smarty…
If you want / need to keep your HTML the same, you can split the values on the server-side with parse_str: