Body Mass Index (BMI) SI

[php]
if ($_POST) {
$a = $_POST[‘height’];
$b = $_POST[‘weight’];if ((empty($a)) || (empty($b))) {
$result = “Fill in all variables”;
}

if (empty($result)) {

$var1 = $a*$a;
$var2 = $b/$var1;

$result = round($var2, 2);
}

echo $result;
echo “*”;
}
[/php]

Height (meters) :
Weight (kg) :

[pullquote]A crude measure of body fat.[/pullquote]
Formula :
Mass (kg) / (height(m) squared)
Explanation of Result :

Category BMI range
Severely underweight < 16.0
Underweight 16.0-18.5
Normal 18.5-25
Overweight 25-30
Obese Class I 30-35
Obese Class II 35-40
Obese Class III >40

* Please verify all calculations prior to clinical use.