Jump to content


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


how can I pass this on

Recommended Posts

I have created this

//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, '.', '');

I want to pass on $totalCart on to

if (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->amount = $totalCart;
$IMX_PP->return = "success.php";
$IMX_PP->cancel_return = "cancel.php";
$url = $IMX_PP->_url;
header("Location: $url");

I want to pass this result into $IMX_PP->amount = $totalCart;

hoew do i do this?

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.