process-form

if (isset($_POST[‘submit’])) {
// get form data
$room_size = $_POST[‘room_size’];
$distance = $_POST[‘distance’];
$location = $_POST[‘location’];

// calculate the quote
$quote = 0;
if ($room_size < 20 && $distance < 5) {
    $quote = 999;
    $unit_type = "Mitsubishi 2.5kw Standard Inverter";
} else {
    $quote = 1200;
    $unit_type = "Mitsubishi 2.5kw Premier Inverter";
}

// store the quote and unit type in the database
// ...

// display the quote and unit type to the client
echo "Your quote is: $quote for a $unit_type unit.";

}