hiya, thanks for this. Trouble is I don't really want to force them to use the secure server as the site is quite large and I don't want it to get too slow. Can I pass the promo code to the secure server in the same way that the cart contents are transferred. On the cart page i tried putting this in before the secure checkout button:
<input type="hidden" name="CouponCode" id="CouponCode" value="txtPromoCode>" />
And then on my checkout page i tried adding this at the top:
<?php
if (!session_id()) session_start();
if((((isset($_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"") != "")) {
$_SESSION["PromoCode"] = "".((isset($_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"") ."";
}
?>
As I thought this would start the session on the secure server with the entered value from the cart page - but it doesn't seem to want to work - can you tell me what I'm doing wrong.
Many thanks.