Hi
I have a code that should:-
if the number entered more than 60
the following should be printed
"Congrats!!!<p>"
"Grade1"
if the number entered between 60 and 40 the following should be printed
"Grade2"
else the script should print
"fail"
but the code print fail all times
can someone help me please.
<html>
<body>
<?php
$A=$_GET['n1text'];
if($A>60)
{
echo "Congrats!!!<p>";
echo "Grade1";
}
else
{
if($A <60 and $A >= 40)
{
echo "Grade2";
}
else
{
echo "\n Fail";
}
}
?>
</body>
</html>