Sample Program Calculating Body Mass Index (BMI) Using *HTML & PHP*

BMI and Risk Factor

My Page
Select your system:
Metric System: Weight (Kg) & Height (meter)
American Units: Weight (lb) & Height (feet)
Enter Weight and Height:
(1) What is your weight?
Enter your weight value :    

(2) What is your height?
Enter the height value:    

Click the green button below:


You did not select your system (Metric) or (American).  

* The values are rounded to two decimal places.    

Your didn't enter any value for your weight:     Please select a value.    
Your didn't enter any value for your height .     Please select a value.    
Your BMI value is:     0.0    

Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. BMI is a useful measure of overweight and obesity. 
BMI is a good measure of body fat and its estimate relation to your risk for diseases that can occur with more body fat. The higher your BMI, the higher your risk for certain diseases such as high blood pressure, heart disease, type 2 diabetes, certain cancers, gallstones, and breathing problems.

🟠BMI MeasurementClassification
218.5 – 24.9Normal
325.0 – 29.9Overweight
430.0 – 34.9Obesity
535.0 – 39.9Obesity II
6>= 40Obesity Extreme

🟠  High blood pressure (hypertension)

🟠  High LDL cholesterol (“bad” cholesterol)

🟠  Low HDL cholesterol (“good” cholesterol)

🟠  High triglycerides

🟠  High blood glucose (sugar)

🟠  Family history of premature heart disease

🟠  Physical inactivity

🟠  Cigarette smoking