Not reading cookie

Hi,

I’m successfully setting a cookie using this Javascript code:

<input type="radio" onclick="document.cookie='fulfil_option=lp'" /><input type="radio" onclick="document.cookie='fulfil_option=hd'" />

I know it’s setting, because I can see it in Chrome cookie setting.

However, I’m drawing a blank when I try and read it using this PHP code on another page:

[php]echo($_COOKIE[‘fulfil_option’]);[/php]

Been frying me for 3 days now - any help much appreciated.

Sponsor our Newsletter | Privacy Policy | Terms of Service