OK I have a form that I was asked if I could help with. This needs to be calculated by checking boxes. You can see a sample at
www.derolds.com/calc20.php
I have tried this several different ways. just cant seam to get it. This is for kitchen cabinets. So first box enter amount. How many cabinets do you need enter amount. Then check boxes to select mods. wood, Laminate, and so on all boxes have a pre defined price. You get the idea. And he needs about 20 boxes [ATTACH=CONFIG]4997[/ATTACH]
<?php
if (count($_POST) > 0 && isset($_POST["calc20TextArea1"])){
$sum = (floatval($_POST["editbox1"])* floatval($_POST["checkbox1"]))+ floatval($_POST["checkbox2"])+ floatval($_POST["checkbox3"])+ floatval($_POST["checkbox4"])+ floatval($_POST["checkbox5"])+ floatval($_POST["checkbox6"])+ floatval($_POST["checkbox7"])+ floatval($_POST["checkbox8"])+ floatval($_POST["checkbox9"])+ floatval($_POST["checkbox10"])+ floatval($_POST["checkbox11"]);
echo "Total is $ $sum";
}
?>