SHARE
TWEET

Untitled

a guest Jun 26th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $paypal_product['items'][] = array(.....);
  2.      
  3. foreach($_POST['item_name'] as  $key=>$itmname)
  4. {
  5.     //create items for session
  6.     $paypal_product['items'][] = array(
  7.  
  8.       'itm_name'=>$_POST["item_name"][$key],
  9.       'itm_price'=>$_POST["amount"][$key],
  10.       'itm_code'=>$_POST['item_code'][$key],
  11.       'itm_qty'=>$_POST['quantity'][$key],
  12.       'itm_type'=>$_POST['productType'][$key],
  13.       'itm_desc'=>$_POST['description'][$key]
  14.                                         );
  15. }
  16.  
  17. echo "Product Code: " . $paypal_product['itm_code'][0];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top