[thelist] $_GET undefined [was: Tips tricks and troubleshooting]

Ed McCarroll thelist at lists.evolt.org
Mon Feb 24 12:37:01 2003


> if ($_GET['dubug'] ) { echo("this is line 21<br />");}

I tried to do something like that:

  if ($_GET['MenuID']) {echo "Yes";} else {echo "No";};

and got an error:

  Notice: Undefined index: MenuID in ...

So I used array_key_exists().  But it works fine for my partner.
Is there a switch or something?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ed McCarroll                          MailTo:Ed at ComSimplicity.comComSimplicity                                      (310) 838-4330
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -