Merhaba. PHP ye yeni başladım. Web için bi uygulama yapmak istedim fakat hata alıyorum.

Uygulama , butona tıklandığında rastgele 0-49 aralığında 6 tane sayı üretmesi.







SAYISAL


























if(isset($_POST['button'])){

$sayi=rand(0,49);
$sayac = 0;
while ($sayac < 6){

echo "
".$sayi."
";
$sayi = rand(0,49);
$sayac++;
}

?>


php kodunda hata alıyorum.

CSS kodu .
*{
padding:0; list-style:none; margin:0; border:0;

}

#button{

width:100px;
height:50px;
text-align: center;
border-radius: 10px;
border:3px solid #000;
transition: all 2s ease-in-out;

}

.genel{
margin:20px;margin-left:300px;
margin-bottom:300px;
background-color:#dasdas;
}
.genel ul li{
float:left;
width:110px;
height:110px;
text-align: center;
opacity:0.3;
border-radius: 56px;
border:3px solid #DBDBEA;
transition: all 1s ease-in-out;
}

.top {
float:left;
width:150px;
height:50px;
text-align: center;
border-radius: 26px;
padding-top:8px;
transition: all 2s ease-in-out;
}
.genel ul li:nth-child(1):hover {
background-color:#00A3D9;
opacity:1;
transform:rotate(360deg);
}
.genel ul li:nth-child(2):hover {
background-color:#00B200;
opacity:1;
transform:rotate(360deg);
}
.genel ul li:nth-child(3):hover {

background-color:#46008C;
opacity:1;
transform:rotate(360deg);
}
.genel ul li:nth-child(4):hover {
background-color:#FF2626;
opacity:1;
transform:rotate(360deg);
}
.top:hover{
font-size: 30px;
}