Jump to content

Notice: Undefined index: msg i


Gayner

Recommended Posts

Because your localhost has error_reporting set to E_STRICT whereas your hosting is probably set to everything except notices. It's a very low level error, it means you are trying to access the item 'msg' in the $_GET array, but there isn't one. You should be doing...

 

if(isset($_GET['msg'])) {
   // do something
} else {
   // do something else
}

Because your localhost has error_reporting set to E_STRICT whereas your hosting is probably set to everything except notices. It's a very low level error, it means you are trying to access the item 'msg' in the $_GET array, but there isn't one. You should be doing...

 

if(isset($_GET['msg'])) {
   // do something
} else {
   // do something else
}

 

Wat the hell does isset do?

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.