Hello , I have a script when the person clicks the button it will give them 1000 credits but if you keep clicking it will keep uploading so they can abuse this and get as many credits and they want.
How can I stop this from happening?
$id = $_POST['1f2121f36f817bd18540e5fa7de06f59'];
mysql_query("UPDATE referr SET status=0 WHERE userid='$uid' AND id='$id'");
mysql_query("UPDATE userinfo SET credits = credits + 1000 WHERE id='$uid'");