Do remember to use
bbcode tags.
First you have to check whether the form is submitted.
Next, using your conditional statement based on what you have given.
if (isset($_POST['Submit'])) {
// Assign the variables
$n1 = $_POST['n1'];
$n2 = $_POST['n2'];
$n3 = $_POST['n3'];
// Your conditional statement
if (($n1>$n2) && ($n1>$n3)) {
$mag = $n1;
} elseif (($n2>$n3) && ($n2>$n1)) {
$mag = $n2;
} else {
$mag = $n3;
}
echo "MAggiore: ".$mag;
}
?>
More or less something like this.