Tim Dobson
04-07-2010, 10:53 PM
I am new to php and just started doing a bit of stuff with cookies and now got slightly stuck.
I am fully aware on how to create a cookie, make a cookie invalid.
im also aware of
print_r($_COOKIE);
to print the value of the cookie on the page... but what if i wanted $thecookie value to be the value of the cookie then wanted to print $thecookievalue
Im not going to echo $thecookievalue i just need to value of the cookie in a string so i can set an if statement to check what the value of the cookie is so i can set the correct page of the user.
Thanks
I am fully aware on how to create a cookie, make a cookie invalid.
im also aware of
print_r($_COOKIE);
to print the value of the cookie on the page... but what if i wanted $thecookie value to be the value of the cookie then wanted to print $thecookievalue
Im not going to echo $thecookievalue i just need to value of the cookie in a string so i can set an if statement to check what the value of the cookie is so i can set the correct page of the user.
Thanks