Cant seem to get this to work, echo the $specprice based on what is selected using the form.
FORM:
Price:Option1 Option2
Script:
$price = $_POST[‘price’];
switch ($_POST[‘type’]) {
case 1:
$specprice = “2.64”;
break;
case 2:
$specprice = “3.07”;
break;
}
echo $price;
echo $specprice;