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?