title: How to remove $_POST in php
body: <p>I am writing a PHP page, which is about Good player voting. I am using $post method. So when somebody cast a vote </p>
  
  <pre><code> if(isset($_POST['amla'])){
              $amla = "update players set amla=amla+1";
              $run_amla =mysqli_query($conn , $amla);
              $_POST = array();
              echo "&lt;script&gt;alert('Your Vote is successfully casted');       &lt;/script&gt;";
          }
  </code></pre>
  
  <p>So when I use the print_r statement after this to check value of $_post the ooutput is :  array();</p>
  
  <p>But when i refresh the page $_post variable appear with its previous value rather than empty array which causes a logical error a cast a vote automatically. how can i clear the $_POST so that even it is still clear after the page is refreshed.</p>