Reply to thread

This code: if ($_COOKIE['username']) is causing this notice: Notice: Undefined index: username


I'm using wamp, so this notice doesn't happen when I upload my site to my web hoster, but I still want to fix this.


I don't want to turn notices off!  I know how to do this.  All I want is a fix to my notice.  10 points for the fix.  Thanks!

NOTE: This notice only happens with I'm not signed in.  When I'm signed in, username exists and I don't get a notice.


Back
Top