burge124 Posted March 20, 2008 Share Posted March 20, 2008 hi, got this code before the header... <?php $Month = 2592000 + time(); //this adds 30 days to the current time setcookie (AboutVisit, date('j F, Y g.ia'), $Month); ?> the error message i am receiving is Notice: Use of undefined constant AboutVisit - assumed 'AboutVisit' in C:\Program Files\EasyPHP 2.0b1\www\user_home.php on line 8 any help in removing the error message? thanks Link to comment https://forums.phpfreaks.com/topic/97108-set-cookie-question/ Share on other sites More sharing options...
soycharliente Posted March 20, 2008 Share Posted March 20, 2008 The first variable is supposed to be a string. Try it in quotes. Link to comment https://forums.phpfreaks.com/topic/97108-set-cookie-question/#findComment-496875 Share on other sites More sharing options...
burge124 Posted March 20, 2008 Author Share Posted March 20, 2008 cheers Link to comment https://forums.phpfreaks.com/topic/97108-set-cookie-question/#findComment-496876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.