Jump to content

Recommended Posts

Hello!
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?

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/11631-dependant-incremental-variables/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.