php - Undefined variable with $_GET? -
i have problem in php:
notice: undefined variable: _get in /.../script/install.php on line 3
and code in line 3:
if($_get['step']<1)
so problem?
variable names case sensitive in php.
if($_get['step']<1)
also, avoid notice
level warnings, may want check existence of variable first:
if ((array_key_exists($_get, "step")) , ($_get['step']<1))
Comments
Post a Comment