ive been running my scripts on a free host for a while but recently switched to running on a localhost yesterday. Im running the latest version of php 4.
Basically my script works like this
[code=php]
if($action==””)
{
//whatever
}
elseif($action==”something
{
//whatever
}
elseif($action==”wewe”
{
//whatever
}
when i try defining the $action variable as $action=$_GET[‘action’]; i get error in the topic subject and when i dont define it all iget
Notice: Undefined variable: action in C:Program FilesApache GroupApache2htdocsgameindex.php on line 14
Notice: Undefined variable: action in C:Program FilesApache GroupApache2htdocsgameindex.php on line 20
Notice: Undefined variable: action in C:Program FilesApache GroupApache2htdocsgameindex.php on line 56
Notice: Undefined variable: action in C:Program FilesApache GroupApache2htdocsgameindex.php on line 86
Notice: Undefined variable: action in C:Program FilesApache GroupApache2htdocsgameindex.php on line 98
when i was running it online i did not define the action variable and used the programming style above and it worked. Is there anything i can do?