Jump to content


dependant incremental variables

  • Please log in to reply
No replies to this topic

#1 blondegeek

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 10 June 2006 - 02:23 AM

I'm trying to write a PHP handling form for PayPal's IPN (instant payment notification). one of the variables that paypal throws at the handler is num_cart_items which tells you how many items were in the cart and numbers each item as item_name1, item_name2, ...

What I need to do is take the number of items in the cart:
$num_cart_items = $_POST['num_cart_items'];

and whatever amount that is make that many of these:

$item_name1 = $_POST['item_name1'];
$item_name2 = $_POST['item_name2'];

that I need for the number of items there were in the cart.

How in the world do I do that?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users