$bmi=$weight / ($height / $height);

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

what is wrong with my php code? when i entered 155 for height and 44 for weight it doesnt appear the result . can you help me?

* bmicalculate.php C\...\htdocs •
A bmicalculate.php C:\...\bmi
* calculate.php ×
* bmi2.php
* bmi1.php
C: > xampp > htdocs > bmi > m calculate.php >@ html > O body >O?
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>BMI</title>
5
</head>
6
<body>
7
8
<h2>RESULT BMI</h2>
9
$height=0
$weight=0
10
11
12
$height=$_POST['height'];
$weight=$_POST['weight'];
13
14
15
16
$bmi=$weight / ($height / $height);
17
18
print("Your BMI is : $bmi");
19
20
</body>
21
</html>
Transcribed Image Text:* bmicalculate.php C\...\htdocs • A bmicalculate.php C:\...\bmi * calculate.php × * bmi2.php * bmi1.php C: > xampp > htdocs > bmi > m calculate.php >@ html > O body >O? <!DOCTYPE html> 2 <html> 3 <head> 4 <title>BMI</title> 5 </head> 6 <body> 7 8 <h2>RESULT BMI</h2> 9 $height=0 $weight=0 10 11 12 $height=$_POST['height']; $weight=$_POST['weight']; 13 14 15 16 $bmi=$weight / ($height / $height); 17 18 print("Your BMI is : $bmi"); 19 20 </body> 21 </html>
* bmicalculate.php C\...\htdocs •
* bmicalculate.php C\..\bmi X
* calculate.php
* bmi2.php
* bmi1.php
C: > xampp > htdocs > bmi > * bmicalculate.php > html
1
<! DOCTYPE html>
2
<html>
3
<head>
4
<title>BMI</title>
5
<body>
6
<h2>
7
CALCULATE YOUR BMI
</h2>
9
<form method="POST" action="calculate.php">
10
<table>
11
<tr>
12
<td>Height (cm)</td>
13
<td>:</td>
14
<td><input type="text" name="height" maxlength="6"></td></tr>
15
<tr>
16
<td>Weight (kg)</td>
17
<td>:</td>
<td><input type="text" name="weight" maxlength="6"></td></tr>
</table>
18
19
<input type="submit" value="Calculate">
</form>
20
21
22
</body>
23
</head>
k/htm15
24
Transcribed Image Text:* bmicalculate.php C\...\htdocs • * bmicalculate.php C\..\bmi X * calculate.php * bmi2.php * bmi1.php C: > xampp > htdocs > bmi > * bmicalculate.php > html 1 <! DOCTYPE html> 2 <html> 3 <head> 4 <title>BMI</title> 5 <body> 6 <h2> 7 CALCULATE YOUR BMI </h2> 9 <form method="POST" action="calculate.php"> 10 <table> 11 <tr> 12 <td>Height (cm)</td> 13 <td>:</td> 14 <td><input type="text" name="height" maxlength="6"></td></tr> 15 <tr> 16 <td>Weight (kg)</td> 17 <td>:</td> <td><input type="text" name="weight" maxlength="6"></td></tr> </table> 18 19 <input type="submit" value="Calculate"> </form> 20 21 22 </body> 23 </head> k/htm15 24
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY