Jump to content

set cookie question


burge124

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.