Getting Javascript value in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Getting Javascript value in PHP

Post by eshban »

In java script i have assigned a variable value to a cookie. How can i get that cookie value in PHP.

Thanks
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Post by dirkr »

$_COOKIE['variablename'] ?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

The cookie won't be available until the next page request, at which point you use the $_COOKIE request array.
Post Reply