How to add amount of 2 items and display in paypal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HariKiran
    New Member
    • Oct 2007
    • 1

    How to add amount of 2 items and display in paypal

    Hi,

    I want to know ,how to select more than 1 product and calculate its sum, and how to redirect this amount in paylpal for a single user.I'm using a check box to select 2 or more items and not able to calculate the total amount because when i tried the sandbox environment it hav the following fields for a single item
    [code=php]
    $paypal[item_name]="$_POST[item_name]";
    $paypal[item_number]="$_POST[item_number]";
    $paypal[amount]="$_POST[amount]";
    [/code]

    So what neeeds to be done for more than 2 .
    Thanks
    Last edited by pbmods; Oct 16 '07, 12:27 AM. Reason: Added CODE tags.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, HariKiran. Welcome to TSDN!

    Please use CODE tags when posting source code:

    [CODE=ph p]
    PHP code goes here.
    [/CODE]

    Comment

    Working...