Karen - Testing
array("hostedButtonId" => "226QZMN2VXK5N", "discount" => "12.50"),
"take50" => array("hostedButtonId" => "T3YUJF5N8U6P2", "discount" => "25")
);
foreach ($arr as $key => $value) {
if ($key == $_POST["couponCode"])
{
$hostedButtonId = $value["hostedButtonId"];
$discount = $value["discount"];
$amount = ($amount - $discount);
break;
}
}
?>
Coupon Code
Slick Tie $
A tie by any other name would still look as sweet. But a tie at a lower price ...