blondegeek Posted June 10, 2006 Share Posted June 10, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.