In a PHP Project I have hyperlink :
<a href="addid.php?id='. $Id . '">| Name |</a>';
When a user click on the link I need to add the selected "id" to session
addid.php Code :
session_start();
$_SESSION['id'] = $_GET['id'];
I need to accomplish this without reloading the page (need to add the "id" to session in background).
How to call addid.php with Javascript & jQuery?
NOTE: I tried this code, but it does load the addid.php in browser
$('a').click(function(){
$.ajax();
return false;
});