Php mysqli likes without page reload
<p>I have some post and like button with code:</p>

<pre><code>&lt;a href="likes.php?userid='$userid'&amp;postid='$postid'"&gt;Like&lt;/a&gt;
</code></pre>

<p>Now In the likes.php I have some Get coding for userid and postid to find which user liked which post and to store it into database. It works good but it reload page. It goes to likes.php and if it is successful it header back to home page or any other I want to. Now my question is how can I do it without reloading a page should I include likes.php code into page where are the posts and like buttons. And use a <code>&lt;a ref=""&gt;&lt;/a&gt;</code>   if it is possible that way? Or if somebody have a better explanation he can post it as well. </p>