$('a').click(function(){ $.ajax({ type: "POST", url: "mysimplepage.php", async: true, data: { logDownload: true, file: $(this).attr("name") } }); return false; });