Help me!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wugang_bob
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2003 8:20 pm

Help me!

Post by wugang_bob »

18)if($action==1)
{....
}

40)<FORM METHOD="POST" ACTION="reg1.php?action=1" name="form1" >

after execute the script the error message is,
PHP Notice: Undefined variable:action in line 18


Please help me on this.

Thank you
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

You must be having register_globals set to "off"...

still you can access it like this...

if ($HTTP_GET_VARS['action']==1) or if ($_GET['action']==1) ..

second one works with PHP 4.2.x or so... safest is first one. . $HTTP_*_VARS
Post Reply