frei
January 3rd, 2003, 11:06 AM
I want to write the cookie-status of a browser into the variable $cookies using PHP and Javascript.
My solution is the following command, but it doesn't work :-((
echo "Cookie status:<script type='text/javascript'>if(navigator.cookieEnabled == 'true') {$cookies='allowed';}</script>".$cookies;
Does someone have an idea how to solve that problem? (the status must be in $cookies because I want to use it somewhere else in the code!)
:confused:
[Goodz13:Moved from Java Fourm]
My solution is the following command, but it doesn't work :-((
echo "Cookie status:<script type='text/javascript'>if(navigator.cookieEnabled == 'true') {$cookies='allowed';}</script>".$cookies;
Does someone have an idea how to solve that problem? (the status must be in $cookies because I want to use it somewhere else in the code!)
:confused:
[Goodz13:Moved from Java Fourm]