С jQuery так можно
[php]
var yourVar = 'value';
$.get('/path/to/script.php', {yourVar: yourVar}, function(data) {
if(data) {
alert('Переменная передана');
}
else {
alert('При отправке запроса произошла ошибка');
}
});
С jQuery так можно
[php]
var yourVar = 'value';
$.get('/path/to/script.php', {yourVar: yourVar}, function(data) {
if(data) {
alert('Переменная передана');
}
else {
alert('При отправке запроса произошла ошибка');
}
});