Hi everyone i write code for tracking user click on links and record them on php pages. Thi is my code

```
<!doctype html>
<html>
 <head>
  <meta charset="utf-8">
  <title>Tracking outgoing links with JavaScript and PHP</title>
 </head>
 <body>
  <p><a href="test2.html">Test link to Google</a></p>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  <script>
   $(function() {
    $('a').click(function() {
    $.post("get.php", { name: "John" }      
    });
   });
  </script>
 </body>
</html>

```

It is working, the page get.php is requseted but not completed. So the data cannot be saved. it seems page move too quick

How to solve this problems. Thanks so much