- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected '$_POST' (T_VARIABLE) in /in/XcnUZ on line 10
Process exited with code 255.
<span style="color:green"><font size="27"><div align="center"> YAZI </div></font></span>
<form action="cal.php" method="post">
Sayi 1 :<input type="text" name="sy">
sayi 2:<input type="text" name="sy1">
<input type="submit" name="hesapla" value="topla">
<input type="submit" name="hesapla1" value="çıkar">
<input type="submit" name="hesapla2" value="çarp">
<input type="submit" name="hesapla3" value="böl">
<?php
sy$_POST["sayi1"];
if sayi1==""{
sayi1=="0"
}
sy1$_POST["sayi2"];
if sayi2==""{
sayi2=="0";
}
$hesapla = $sy1 + $sy;
echo "TOPLAM :" .$hesapla;
$hesapla = $sy1 - $sy;
echo "TOPLAM :" .$hesapla1;
$hesapla = $sy1 * $sy;
echo "TOPLAM :" .$hesapla2;
$hesapla = $sy1 //$sy;
echo "TOPLAM :" .$hesapla3;
{
echo $hesapla
}
?>