undefined variable: action

From: Date: Wed, 11 Jun 2003 19:07:30 +0000
Subject: undefined variable: action
Groups: php.general 
Request: Send a blank email to php-general+get-151113@lists.php.net to get a copy of this message
Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: <? echo "<a href=\"index.php?action=someaction\">Some Action</a>"; if ($action == "someaction") { echo "Anything"; } ?> It says: Notice: Undefined variable: action in ..... Ive built plenny of pages with simple things like that, and they all work...is it a problem with my apache server??? Thanks in advance Ryan

« previous php.general (#151113) next »