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 />"; } ?> Quote Link to comment 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 Quote Link to comment 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.. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.