Q1 (5 marks): Create an HTML form to calculate a person’s body mass index (BMI), based on the person’s…

Q1 (5 marks): Create an HTML form to calculate a person’s body mass index (BMI), based on the person’s…

Question:

Transcribed Image Text:

Q1 (5 marks): Create an HTML form to calculate a person’s body mass index (BMI), based on the person’s height and weight. Specifically, create a form, on which users can input height and weight, and write some PHP code to calculate BMI based on the input. Use the following formula: //metric bmi = kg/(2* m) Write a handler.php scripts that does the following: once the user clicks on the submit button on the form below, the handler should process the data and print in the format shown below a message that depends on the calculated BMI value. It should always print “Your BMI value is “concatenated with the BMI value, and then concatenated with the” and you are: “, then concatenated with a string (call it $output) that depends on BMI value as follows: if bmi 18.5 and bmi 24.9 and bmi 30.0 output = “OBESE”; the following is an example input/output Insert weight in kilograms (kg): 90 Insert your Height in meters (m): [1.8 submit Your BMI value is 27.777777777778 and you are : OVERWEIGHT

Expert Answer:

Answer rating: 100% (QA)

An HTML form to calculate a person s BMI along wi
View the full answer