I have the following button:

```
<input type="submit" name="kudos_button" value="★ Give kudos"/>'

```

And for testing purpose, I made a PHP script like this after the `</html>`:

```
<?php
    if(isset($_POST['kudos_button'])){
        $message = "Pressed";
        echo "<script type='text/javascript'>alert('$message');</script>";
        //and then execute a sql query here
    }
?>

```

It all works fine, when pressing the `kudos_button` the message shows up. But the problem is that when the user refreshes the page, the message shows up again. And I get the following message:

> 
> The page that you're looking for used information that you entered.
> Returning to that page might cause any action you took to be repeated.
> Do you want to continue?
> 
> 
> 

Any tips how I can avoid this, so the button does not press again when refreshing?