if içinde if veya döngü içinde döngü gibi işlemler yaparken her zaman kodları biraz dallandırın.hangi parantez hangi if in veya döngünün belli olsun o zaman karışıklık olmaz.parantezleri düzenledim buyrun bir deneyin...

<html><head><title>Calculation Result</title></head>
<body> 
<?php
$sayi1 = $_POST["sayi1"];
$sayi2 = $_POST["sayi2"];
$islem = $_POST["islem"];
if( is_numeric($sayi1) && is_numeric($sayi2) ) {
    if ($islem == 'choose') {
        echo "Please choose an operation.<br />
        <b><a href='index.php'>Back</a></b>";
    }
    else if ($islem == 'sub'){
        $sonuc = $sayi1 - $sayi2;
        echo "The result is <b>".$sonuc.".</b><br /><a href='index.php'>Back</a>";
    }
    else if ($islem == 'add'){
        $sonuc = $sayi1 + $sayi2;
        echo "The result is <b>".$sonuc.".</b><br /><a href='index.php'>Back</a>";
    }
    else if ($islem == 'mul'){
        $sonuc = $sayi1 * $sayi2;
        echo "The result is <b>".$sonuc.".</b><br /><a href='index.php'>Back</a>";
    }
    else if($islem == 'div'){
        $sonuc = $sayi1 / $sayi2;
        echo "The result is <b>".$sonuc.".</b><br /><a href='index.php'>Back</a>";
    }
}else{
    echo("Invalid entry - please retry");
}
?>