Answer the question
In order to leave comments, you need to log in
Why are cookies buggy?
cookie assignment function:
function setCookie(name, value) {
document.cookie = name + "=" + value + "; expires=" + "155520";
}
function getCookie(name) {
var r = document.cookie.match("(^|;) ?" + name + "=([^;]*)(;|$)");
if (r) return r[2];
else return "";
}
var content = getCookie("invoice-content");
console.log(content);
var params = {
content: content
};
$.post('обработчик',params ,function (data) {
$('...').html(data);
});
print_r($_POST['content']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question