How could i remove GET variable from URL after its called ?
Calling with
<a href="?reward">
After its called
if (isset($_GET['reward'])){
$username = $_SESSION['username'];
$points = $_SESSION['points'];
if ($points >=500) {
echo " test value is more than 500";
} // ANTRA IF UZDAROM
else {
echo '<script type="text/javascript">';
echo 'setTimeout(function () { swal({type: "error",title: "Oops...",text: "You do not have enough points!",buttonsStyling: false,heightAuto: false});';
echo '}, 1000);</script>';
}
} // PIRMA IF UZDAROM
And in my url as you understand i see somelink.php?reward
Why would i want to remove it ? Well, since people can refresh page they could abuse something. What are the ways ?