I stored a javascript value into a cookie, as shown below.
var headvalue = "blue";
localStorage.setItem('headvalue', headvalue );
It it possible to get this headvalue variable from the cookie and store it into a php variable $headvalue? if yes how?
What are you trying to do? I suppose you could do that with AJAX by calling a PHP page with GET/POST, submitting your variable and storing it, but it isn't going to do you much good after that script has completed executing, unless you stored it as a session variable.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments