Fatal Error: Call to undefined function result()

08/14/2013 08:18 Ranyhoss72#1
Hi everyone... i am going to advance learning in php..its about bmi so in the code area.. i will not put the code in some area because it is a currently activity and i dont want my classmates to search and find this page out..
<?php
if isset($_POST['submit']) // if the button is submitted
if ... // if the height field area is empty
...//statement of it saying it is an error
elseif .... //if the weight field area is empty
...//statement of it saying it is an error
else //if the height and weight is perfectly filed up then it goes to else
...//statements i put in here are the calculation required to get the bmi
?>
08/14/2013 10:02 +Yazzn#2
Apparently the function result() is undefined. Without further code we can't help you very much.
08/14/2013 10:09 mhaendler#3
Quote:
Originally Posted by Ranyhoss72 View Post
Hi everyone... i am going to advance learning in php..its about bmi so in the code area.. i will not put the code in some area because it is a currently activity and i dont want my classmates to search and find this page out..
<?php
if isset($_POST['submit']) // if the button is submitted
if ... // if the height field area is empty
...//statement of it saying it is an error
elseif .... //if the weight field area is empty
...//statement of it saying it is an error
else //if the height and weight is perfectly filed up then it goes to else
...//statements i put in here are the calculation required to get the bmi
?>
There is no function "result" which you are calling, but with this code snippet we can't help you very much.

Please use the [ CODE] [ /CODE] Tag if you are writing code!

PHP Code:
<?php
if isset($_POST['submit']) // if the button is submitted
if ... // if the height field area is empty
...//statement of it saying it is an error
elseif .... //if the weight field area is empty
...//statement of it saying it is an error
else //if the height and weight is perfectly filed up then it goes to else
...//statements i put in here are the calculation required to get the bmi
?>