-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbmi.php
48 lines (40 loc) · 1.85 KB
/
bmi.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML>
<html>
<head>
<title>LivFit - Calculate your BMI</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="shortcut icon" href="images/ui/favicon.ico">
</head>
<body>
<?php include ("header.php"); ?>
<?php include ("nav.php"); ?>
<div id=content>
<h1>Calculate your BMI</h1>
<p>Body mass index (BMI) is a measure of body fat based on your weight in relation to your height, and applies to most adult men and women aged 20 and over. For children aged 2 and over, BMI percentile is the best assessment of body fat.
<p>BMI does not measure body fat directly. However, research indicates that BMI correlates to direct measures of body fat such as underwater weighing and dual-energy X-ray absorptiometry (DXA), and is considered an inexpensive and easy-to-perform alternative for these.
</div>
<div class=left style="">
<img src="images/scale help 600px.png">
</div>
<div class=right>
<script type="text/javascript" src="js/bmi_calc.js"></script>
<form name="bmiForm" class=formwhite>
<h2>Enter your details</h2>
Your Weight <i>(in kg)</i> <br><input type="text" name="weight" size="15" >
<span class="alertmsg" id="bmi_weight_alert"></span>
<br />
Your Height <i>(in cm)</i> <br><input type="text" name="height" size="15" >
<span class="alertmsg" id="bmi_height_alert"></span>
<br />
<br>
<input type="button" class=button value="Calculate BMI" onClick="calculateBmi()"><br />
<h2>Check your result</h2>
Your BMI is <br><input type="text" class="bmioutput" name="bmi" size="15" readonly><br />
This means that <br><input type="text" class="bmioutput" name="meaning" size="20" readonly><br />
<br>
<input type="reset" class=button value="Reset" />
</form>
</div>
<?php include ("footer.php"); ?>
</body>
</html>