$mac1 = $_POST["1"];
$mac2 = $_POST["2"];
$mac3 = $_POST["3"];
$mac4 = $_POST["4"];
$mac5 = $_POST["5"];
$mac6 = $_POST["6"];
$mac7 = $_POST["7"];
$mac8 = $_POST["8"];
$mac9 = $_POST["9"];
$mac10 = $_POST["10"];
$mac11 = $_POST["11"];
$mac12 = $_POST["12"];
$misli = $_POST["oranbk"];
$macsayisi = $_POST["sayi"];


if($macsayisi == 1) {
$oranx = $mac1;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 2){
$oranx = $mac1 *$mac2;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 3){
$oranx = $mac1 *$mac2 * $mac3;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 4){
$oranx = $mac1 *$mac2 * $mac3 * $mac4;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 5){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 6){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 7){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 8){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 9){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 10){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 11){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10 * $mac11;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 12){
$oranx = $mac1 *$mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10 * $mac11 * $mac12;
$sonuc = $misli * $oranx;
echo $sonuc;
}else{
echo "Lütfen Maç Oranlarını Giriniz"
}

?>