-
Üyelik
19.07.2015
-
Yaş/Cinsiyet
36 / E
-
Meslek
Yazılım
-
Konum
İstanbul Anadolu
-
Ad Soyad
Ö** A**
-
Mesajlar
83
-
Beğeniler
33 / 23
-
Ticaret
2, (%100)
Bu şekilde olması gerekir:
$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"];
$_POST = array_map('trim', $_POST);
if ( isset($_POST) && $_POST != "" ) {
if($macsayisi == 1 && $mac1>0) {
$oranx = $mac1;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 2 && $mac1>0 && $mac2>0){
$oranx = $mac1 * $mac2;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 3 && $mac1>0 && $mac2>0 && $mac3>0){
$oranx = $mac1 * $mac2 * $mac3;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 4 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 5 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 6 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 7 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 8 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 9 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 10 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 11 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0 && $mac11>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10 * $mac11;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 12 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0 && $mac11>0 && $mac12>0){
$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";
}
} else {
echo"Lütfen Boş Bırakmayınız.";
}
?>