\n". ""; include "header.phtml"; ?>
"; $FW = ""; # ==================== Calculations ============================= if ($inches == 0) {$inches = 0.000000001;} if ( ($feet >.01) && ($inches != "") && ($pounds > .01)) {$All_In = "TRUE";} # echo "All In = $All_In

."; if ($All_In == "TRUE") { $totalinches = $inches + 12 * $feet; $totalcentimeters = DoubleVal($totalinches) * 2.54; $totalmeters = DoubleVal($totalcentimeters) / 100; $kilograms = DoubleVal($pounds) / 2.2046; $BMI = $kilograms / ($totalmeters * $totalmeters); # $BMI = $BMI / $totalmeters; $BMI = sprintf("%.1f", $BMI); } # ====================== Output Page ================================= if ($All_In != "TRUE") { echo "

Data Missing


"; if ($inches == "") {echo "$F Please supply Inches.

";} if ($feet == "") {echo "$F Please supply a value for feet.

";} if ($pounds == "") {echo "$F Please supply a value for pounds.

";} #exit; } echo "

"; echo "
"; echo "
"; if ( $BMI <= 18.5 ) echo "$F Your Body Mass Index is $BMI. This shows that you may be underweight. "; if ( $BMI <= 24.9 && $BMI >=18.6 ) echo "$F Your Body Mass Index is $BMI. This shows that you are of a normal weight."; if ( $BMI <= 29.9 && $BMI >= 25) echo " $F Your Body Mass Index is $BMI. This shows that you are moderately overweight. Your BMI is not high enough to qualify you for bariatric surgery."; if ( $BMI <= 34.9 && $BMI >= 30 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Obese. Your BMI may qualify you for bariatric surgery if you have severe comorbid conditions such as diabetes (type ll), hypertension, sleep apnea or other potentially life-threatening diseases. "; if ( $BMI <= 39.9 && $BMI >= 35 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Severely Obese. Your BMI is high enough to qualify you for bariatric surgery if you have comorbid conditions such as diabetes (type ll), hypertension, sleep apnea or other potentially life-threatening diseases. "; if ( $BMI <= 49.9&& $BMI >=40 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Morbidly Obese. Your BMI is high enough to qualify you for bariatric surgery. "; if ($BMI >50) echo "$F Your Body Mass Index is $BMI. This puts you in the Super Morbid Obesity catagory. Your BMI is extremly high and is enough to qualify you for bariatric surgery "; echo "

"; #echo ""; #echo "
"; #echo "
"; echo "$F The table below shows value ranges and what they mean.

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
$FW   Range
$FW Meaning
$FW   less than 18.5$FW   Underweight
$FW   18.5 - 24.9 $FW   Normal
$FW   25.0 - 29.9$FW   Overweight
$FW   30.0 - 34.9$FW   Obese
$FW   35.0 - 39.9$FW   Severely Obese
$FW   40.0 - 50$FW   Morbidly Obese
$FW   over 50$FW   Super Obese
"; echo "

"; echo ""; #echo "$If your BMI is greater than 40, then one treatment alternative for you "; #echo "may be bariatric surgery. If your BMI is over 35 but you have a significant "; #echo "number of health problems (ex: diabetes, sleep apnea) caused or made much worse "; #echo "by your weight, then you might also consider bariatric sugery as a treatment option.

"; echo "
"; echo "
"; ?>