I was wondering if there is a way to use a GET variable while staying on the same page.
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.
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
NOTE: The add to favorites link below, links to same page that the user will be on when clicking it.
if(isset($_SESSION['username'])){
echo '<div id="favbutton"><a href="search.php?id='.$id.'"><img src="./image/staricon.png"/>Add to favorites</a></div>';
}
thank you