So I made a game and in my game there is a activation part of items. So they may click activate button many times like a spam and it causes some bugs. Any idea how I can avoid it?
This activation part is not like a submit form, its just like they click it and this function works and activates the thing. Any suggestions what I can do about it?
This is how they activate
and php part is like this inside. so this clicking part is inside in php.
if($idd->is_active == 0){
echo "<a href='/item/activate/".$s."'>Aktifleştir</a>";
}
elseif($idd->is_active == 1){
echo '<a href="/item/de-activate/'.$s.'">Pasifleştir</a>';
}