Jump to content


This topic is now archived and is closed to further replies.


dependant incremental variables

Recommended Posts

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:
[code]$num_cart_items = $_POST['num_cart_items'];[/code]

and whatever amount that is make that many of these:

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

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

How in the world do I do that?


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.