Page 1 of 1

Help me!

Posted: Sat Jul 05, 2003 6:38 am
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

Posted: Sat Jul 05, 2003 7:12 am
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