I have a variable set in localStorage and I want to get it into php. When php is executed the value is already set in local storage, but how should I get into php?
I tried something like this:
$myvar = "<script> localStorage.getItem('productinfo')['s3_url']</script>";
But this for some reasons gives a Uncaught SyntaxError: missing ) after argument list
How should I approach this? Thanks.