fazzfarrell Posted October 18, 2006 Share Posted October 18, 2006 I have created this[code]<?php //Rob Farrell and Leyon Nevett: ad up cost x currency $number1 = $HTTP_SESSION_VARS["icJag"]->col("Total"); $number2 = $row_rsCurrency['Rate']; $newnumber = ($number1 * $number2); echo $english_format_number = number_format($newnumber, 2, '.', ''); $totalCart = $english_format_number = number_format($newnumber, 2, '.', '');?>[/code]I want to pass on $totalCart on to[code]<?phpif (isset($HTTP_POST_VARS["imxPPForm1"])) { $IMX_PP = new PayPalSIP(); $IMX_PP->business = "email@paypal.com"; $IMX_PP->image_url = "logo.gif"; $IMX_PP->item_number = $HTTP_SESSION_VARS["icJag"]->col("OrderID"); $IMX_PP->item_name = "Jaguar"; $IMX_PP->currency_code = $row_rsCurrency['CurrRate']; $IMX_PP->quantity = "1"; $IMX_PP->winName = "paypal"; $IMX_PP->toolbar="no"; $IMX_PP->location="no"; $IMX_PP->status="no"; $IMX_PP->menubar="yes"; $IMX_PP->scrollbars="yes"; $IMX_PP->resizable="no"; $IMX_PP->width="700"; $IMX_PP->height="500"; $IMX_PP->amount = $totalCart; $IMX_PP->return = "success.php"; $IMX_PP->cancel_return = "cancel.php"; $IMX_PP->create(); $url = $IMX_PP->_url;header("Location: $url");}[/code]I want to pass this result into $IMX_PP->amount = $totalCart;hoew do i do this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.