I would like to get the parameter in a key such as http://link.com/?parameter
I read somewhere that the key is NULL
and the value would be parameter
.
I tried $_GET[NULL]
but it didn't seem to work.
Here is my code:
if ($_GET[NULL] == "parameter") {
echo 'Invoked parameter.';
} else {
echo '..';
}
It just prints out ..
so that means I'm not doing it right. Can someone please show me the right way.