RE: [PHP] Undefined index, Undefined variable, Undefined constant....
| From: | Jay Blanchard | Date: | Fri, 06 Sep 2002 14:12:36 +0000 |
| Subject: | RE: [PHP] Undefined index, Undefined variable, Undefined constant.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115474@lists.php.net to get a copy of this message | ||
[snip]
I'm having trouble with the newest version of PHP (4.2.2).
For example in a page I'm using the following code:
if ($_GET['action'] == "logout") {
//do something
}
[/snip]
As a quick troubleshooting method echo or print $_GET['action'] to see what,
if anything, is contained there. I would also like to see more than;
...log_message reports: PHP Notice: Undefined index: action in....
HTH!
Jay
Here I am. Now what were your other two wishes?
*****************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* Contact jay.blanchard@niicommunications.com *
* *
* Want to present a paper or workshop? Contact now! *
*****************************************************