2007-05-14 14:52:18醬菜♥

(暫貼)



<br /> BMI身體質量指數<br />








身高

體重





$tall = $_POST[’tall’]/100;
$weight = $_POST[’weight’];
if($tall !=""&& $weight !="" )
{


$bmi = $weight/($tall*$tall);
echo"您的BMI為".round($bmi,2)."
";
if($bmi >=35)
{echo"重度肥胖";}

elseif($bmi >=30 && bmi <35)
{echo "中度肥胖";}

elseif($bmi >=27 && bmi <30)
{echo "輕度肥胖";}

elseif($bmi >=24 && bmi <27)
{echo "過重";}

elseif($bmi >=18.5&& bmi <24)
{echo "正常範圍";}

else{echo"體重過輕";}

}


?>









I am 醬菜♥ 2007-05-14 22:43:06

PHPˊ皿ˋ

My dream , 2007-05-14 18:36:03

ㄟ 什麼阿?