I want to know what URL user has accessed. For example, if user accessed:
index.php?register
it will echo '1'.
if (isset($_GET))
{
switch ($_GET)
{
case "register":
echo 1;
break;
}
}
But it doesn't do anything, why? How do you get the name of the first GET element?