Hi, I'm a beginner with PHP and have a problem: I have a simple HTML form which has only one field. One of the values that users can input is "zero". But, when the .PHP page that handles the form is called , the value "zero" comes immediatly, before the user enter any value, the output takes the "zero" into account and outputs a "result". Could someone please help me on that? Thanks. Best regards. Godefr
Hi wmhelp Thank you for your answer, here's the code: <?php $angle = $_POST['angle']; $radians = $angle*3.14159/180; $tang = tan($radians) ; $cotangent = 1/$tang; if($angle == "") echo "THE VALUE OF THE ANGLE?"; if(($angle == 180) OR ($angle == 360) OR ($angle == -180) OR ($angle == -360) OR ($angle == 0)) echo "THE COTANGENT OF ", $angle, " DEGREES, IS ", "∞"; else echo "THE COTANGENT OF ", $angle, " DEGREES, IS ", $cotangent; ?> When the page is loaded the answer comes as if "zero" had been inputed. Your help is greatly appreciated. Thank you.