$form_id = $_POST[‘form_id’]; echo “form id is”.$form_id.”[br]”; $format = $_POST[‘vfb-10’]; $sell = $_POST[‘vfb-44’]; if(empty($format)) { echo “You didn’t select any format.”.”[br]”; } else { $cost = 0; $N = count($format); echo “You selected $N formats: “; for($i=0; $i < $N; $i++){ echo $format[$i] . "[br]"; $cost = $cost + 100; } echo "the amount you have to pay for development is ".$cost."[br]"; } if(empty($sell)){ echo "you haven't selected where to sell your book"."[br]"; } else if($sell == 'Sell in India'){ echo "sell in india"."[br]"; $final_cost = $cost + 500; echo "The amount to be paid is ".$final_cost; } else if($sell == 'Sell in India + Abroad'){ echo "Sell in India + Abroad"."[br]"; $final_cost = $cost + 1000; echo "The total amount to be paid is ".$final_cost; } [/php]