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
wugang_bob
Forum Newbie
Posts: 6 Joined: Thu Jun 26, 2003 8:20 pm
Post
by wugang_bob » Sat Jul 05, 2003 6:38 am
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
igoy
Forum Contributor
Posts: 203 Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:
Post
by igoy » Sat Jul 05, 2003 7:12 am
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