MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 change it to... <?php if (isset($_COOKIE["user"])){ echo "Welcome " . $_COOKIE["user"] . "!<br />"; }else{ setcookie("user", "Alex Porter", time()+3600); echo "Welcome guest!<br />"; } ?> Link to comment https://forums.phpfreaks.com/topic/153967-solved-track-the-number-of-new-customers/page/2/#findComment-809316 Share on other sites More sharing options...
gizmola Posted April 14, 2009 Share Posted April 14, 2009 Did you read the sticky I referenced? http://www.phpfreaks.com/forums/index.php/topic,37442.msg138336.html#msg138336 Link to comment https://forums.phpfreaks.com/topic/153967-solved-track-the-number-of-new-customers/page/2/#findComment-809319 Share on other sites More sharing options...
sungpeng Posted April 14, 2009 Author Share Posted April 14, 2009 <?php setcookie("user", "Alex Porter", time()+3600); ?> Suddenly not working.. I just have only the above code.. nothing else.. but it keep giving be warning : cannot modify headache information.. Link to comment https://forums.phpfreaks.com/topic/153967-solved-track-the-number-of-new-customers/page/2/#findComment-809333 Share on other sites More sharing options...
MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 read what gizmola has linked you to. We can only help those, who have helped themselves. Link to comment https://forums.phpfreaks.com/topic/153967-solved-track-the-number-of-new-customers/page/2/#findComment-809334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.