Hi there
New to PHP. Im trying to set a cookie but for some reason it wont work.
The code is inside a Submit button and happens after I have read the MySQL
database and succesfully retrieved the record. For some reason the cookie is
not created.
Here is the code
setcookie("firs tname",$firstna me,time() + (7 * 86400));
$firstname contains a string value. It is not empty.
What can be wrong?
Thanks
New to PHP. Im trying to set a cookie but for some reason it wont work.
The code is inside a Submit button and happens after I have read the MySQL
database and succesfully retrieved the record. For some reason the cookie is
not created.
Here is the code
setcookie("firs tname",$firstna me,time() + (7 * 86400));
$firstname contains a string value. It is not empty.
What can be wrong?
Thanks
Comment