PHP program to find largest number among any three number. (12)

<html>
<head>
<title>PHP Program To find out the biggest of given three numbers</title>
</head>
<body>
<form method="post">
<input type="text" name="num1" />
<input type="text" name="num2" />                                   
<input type="text" name="num3" value="" />                                    
<input type="submit" name="submit"/>
</form>
<?php
if(isset($_POST['submit']))
{
$a = $_POST['num1'];
$b = $_POST['num2'];
$c = $_POST['num3'];
if($a>$b && $a>$c)
{
echo $a."is a Big number. ";
}
else
if($b>$c && $b>$a)
{
echo $b." is a Big number. ";
}
else
if($c>$a && $c>$b)
{
echo $c ."is a Big number. " ;
}
return 0;
}
?>
</body>
</html>

Comments

Popular posts from this blog

Question Collection-11

Important Questions for XII