I'm looking to detect the $_GET
variable name. What I'm trying to detect is:
index.php?login (detect login)
index.php?news (detect news)
I've looked all over and I can't seem to find anyone who has requested this. I'm not looking to detect the value of the variable just that the specific variable exists with no value and if there is a value it is an error. I really appreciate any help.
EDIT: Thanks to a little detective work with the help of zerkms I was able to determine it was being pass through QUERY_STRING
so I sent it to a variable through $_SERVER['QUERY_STRING'];
Thank you everyone!