moving checkout to secure environment
The above poster mentioned redirecting the form action on the cart page to target an absolute SSL URL for the checkout page and subsequent pages. It appears in the header of my cart page, I have 4 copies of the code for this action.
<?php
//WA eCart Redirect Check Out
if (isset($_POST["eCart1_Checkout"]) || isset($_POST["eCart1_Checkout_x"])) {
$Redirect_redirStr="checkout.php";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") < 0) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}
$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "Checkout";
}
?>
Why 4 copies of this code? If I change the-- $Redirect_redirStr="checkout.php"; --to an absolute SSL URL, does this allow all subsequent pages of checkout procedure to be in a secure environment?