Page 1 of 1

Getting Javascript value in PHP

Posted: Thu Aug 16, 2007 7:43 am
by eshban
In java script i have assigned a variable value to a cookie. How can i get that cookie value in PHP.

Thanks

Posted: Thu Aug 16, 2007 7:52 am
by dirkr
$_COOKIE['variablename'] ?

Posted: Thu Aug 16, 2007 8:07 am
by superdezign
The cookie won't be available until the next page request, at which point you use the $_COOKIE request array.