Using a get variable while staying on the same page?
<p>I was wondering if there is a way to use a GET variable while staying on the same page. </p>

<p>I have some php/mysql script that I would like to execute if a particular link is clicked, using a GET variable. However, once the link is clicked, I don't want anything on the page to change, I just want to the script to run behind the scenes.</p>

<p>Right now, when A user is on the search page and adds an item to their favorites all search results disappear, and b/c I am resubmitting </p>

<p>NOTE: The add to favorites link below, links to same page that the user will be on when clicking it.</p>

<pre><code>if(isset($_SESSION['username'])){
     echo '&lt;div id="favbutton"&gt;&lt;a href="search.php?id='.$id.'"&gt;&lt;img src="./image/staricon.png"/&gt;Add to favorites&lt;/a&gt;&lt;/div&gt;';
}
</code></pre>

<p>thank you</p>
