2016-11-27 01:12:32 -05:00
|
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
|
|
<html>
|
|
|
|
<head>
|
2016-11-27 23:06:42 -05:00
|
|
|
<title>Calculate BMI</title>
|
2016-11-27 01:12:32 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2016-11-27 23:06:42 -05:00
|
|
|
<form name="bmiForm" action="calculateServlet" method="POST">
|
2016-11-27 01:12:32 -05:00
|
|
|
|
2016-11-27 23:06:42 -05:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Your Weight (kg) :</td>
|
|
|
|
<td><input type="text" name="weight"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Your Height (m) :</td>
|
|
|
|
<td><input type="text" name="height"/></td>
|
|
|
|
</tr>
|
|
|
|
<th><input type="submit" value="Submit" name="find"/></th>
|
|
|
|
<th><input type="reset" value="Reset" name="reset" /></th>
|
|
|
|
</table>
|
|
|
|
<h2>${bmi}</h2>
|
2016-11-27 01:12:32 -05:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|