envoyer variable javascript vers php code example
Example: envoyer des donnees js a php
$.ajax({
url: 'functions.php',
type: 'POST',
data: 'latitude='+lat+'&longitude='+lon,
success: function(data){
// instructions
}
});
$.ajax({
url: 'functions.php',
type: 'POST',
data: 'latitude='+lat+'&longitude='+lon,
success: function(data){
// instructions
}
});