php - GET request not working -
i trying record link click through jquery execute php file nil 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 clicks values ('','','','','')"); }
running php fron file works jquery doesnt
any help please?
try this:
$('#click').click(function(e){ e.preventdefault(); $.get("record.php", { id: "a" }, function(data){}); });
php jquery
No comments:
Post a Comment