I am trying to record a link click through jquery to execute a php file but nothing is hapening.
$('#click').click(function(){
$.get("record.php", { id: "a" }, function(data){});
});
Link
<a id='click' href='http://some link' target='_blank'>Start Download</a>
Record
<?php
include 'db.php';
if (isset($_GET['id']))
{
mysql_query("INSERT INTO clicks VALUES ('','','','','')");
}
Running the php fron the file itself works good but from the jquery it doesnt
Any help please?