Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Добре, кажи как ще стане ..Liberate каза:ajax
split каза:$_SESSION['lang']='bg';
$lang=$_SESSION['lang'];
ajax.language.translate(text, result.language, "<?php echo $lang;?>"
Пробвай така :wink:
Ето примерен код, в файла setPararam.php, стойността на result.translation ще е достъпна чрез $_POST['param']function sendParam(param) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('POST', 'setParam.php', true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200)
alert('Promenlivata e zapisana!');
}
}
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlhttp.send('param='+result.translation);
}