Hey guys, I know this topic is a dead horse but i've searched and searched and can't find a solution as to why my code isn't working. It's a bmi calculator. Could you help me out just a bit?
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function calcBMI() {
var weight = (document.info.weight.value);
var height = (document.info.height.value);
var total = weight/(height*height);
document.info.BMI.value = parseINT(total);
}
</script>
</head>
<body>
<h1> Body Mass Index </h1>
<form name="info" action="" method="POST">
Weight<input type="text" name="weight" value=""><br>
Height<input type="text" name="height" value=""><br>
BMI<input type="text" name="BMI" value=""><br>
<input type="button" name="calc" value="Calculate" onclick="calcBMI()"><br>
</form>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function calcBMI() {
var weight = (document.info.weight.value);
var height = (document.info.height.value);
var total = weight/(height*height);
document.info.BMI.value = parseINT(total);
}
</script>
</head>
<body>
<h1> Body Mass Index </h1>
<form name="info" action="" method="POST">
Weight<input type="text" name="weight" value=""><br>
Height<input type="text" name="height" value=""><br>
BMI<input type="text" name="BMI" value=""><br>
<input type="button" name="calc" value="Calculate" onclick="calcBMI()"><br>
</form>
</body>
</html>