=30 && $age <=34) && ($gender = '男生')) { $age_score = -1;}
if (($age >=70) && ($gender = '男生')) { $age_score = 7;}
return $age_score;
}
?>
';
switch ($_REQUEST['SexGroup']) {
case('1'):
$gender = '男生';
break;
case('2'):
$gender = '女生';
break;
}
echo $gender . '
';
$age = $_REQUEST['age'];
$blood_press1 = $_REQUEST['blood_press1'];
$blood_press2 = $_REQUEST['blood_press2'];
echo '你的年齡是:' . $age . '
';
echo '你的舒張壓是: ' . $blood_press1 . '
';
echo '你的收縮壓是: ' . $blood_press2 . '
';
if(isset($_REQUEST['high_blood'])) {
echo '有使用高血壓藥物' . '
';
$high_blood = 1;
}
else {
echo '沒有使用高血壓藥物' . '
';
$high_blood = 0;
}
if(isset($_REQUEST['smoke'])) {
echo '有抽煙!' . '
';
$smoke = 1;
}
else {
echo '沒有抽煙!' . '
';
$smoke = 0;
}
if(isset($_REQUEST['sugar'])) {
echo '有糖尿病!' . '
';
$sugar = 1;
}
else {
echo '沒有糖尿病!' . '
';
$sugar = 0;
}
$hdl = $_REQUEST['hdl']; // 高密度膽固醇
$tdl = $_REQUEST['tdl']; // 低密度膽固醇
echo '你的高密度膽固醇是: ' . $hdl . '
';
echo '你的總膽固醇是: ' . $tdl . '
';
echo '年齡分數:' . age_gender($age, $gender) . '
';
?>
[ 返回 ]