Reputation: 11
I have this problem in php:
Notice: Undefined variable: _Get in /.../script/install.php on line 3
and this is the code in line 3:
if($_Get['step']<1)
so what is the problem?
Upvotes: 0
Views: 7296
Reputation: 1
I was experiencing the same error "undefined variable $_GET" ... Then I re-install XAMPP, now in the C drive and problem was solved.
I don't know if there was an issue with my previous installation per se, or maybe something XAMPP does not like about logical drives.
Just wanted to share. Good luck!!
Upvotes: 0
Reputation: 17488
Also make sure that in your url you have the parameter. EG: install.php?step=1
Upvotes: 0
Reputation: 449823
Variable names are case sensitive in PHP.
if($_GET['step']<1)
also, to avoid notice
level warnings, you may want to check for the existence of the variable first:
if ((array_key_exists($_GET, "step")) and ($_GET['step']<1))
Upvotes: 2