Hi...
I have script where I'm attempting to allow users to store a variable in a cookie so when they return it's available.
However... for some strange reason, I continue to get an error unless I put an asterisk inside the $_COOKIE brackets.
For example :
if($_COOKIE['303rd'] != "") {
$check = $_COOKIE['303rd'];
if I don't have the asterisk in there, I get the following error -
Parse error: parse error, expecting `']'' in /var/www/html/303rd/includes/login.php on line 11
I've used the PRINT function to attempt to show what I'm getting out of $_COOKIE['303rd'], and it comes up blank.
I'm pretty sure that the asterisks are the cause of the problem... when the cookie is set it's name is simply 303rd.
Why is it wanting asterisks in there? I've never encountered that before.