$.ajax({ url: 'functions.php', type: 'POST', data: 'latitude='+lat+'&longitude='+lon, success: function(data){ // instructions } });