Question: 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

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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

An HTML form to calculate a persons BMI along wit... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!