The following code executes whether there are GET variables passed or not:
if($_SERVER['REQUEST_METHOD'] == 'GET')
{
//Do something
}
The following only executes when GET variables are passed:
if($_GET)
{
//Do something
}
I was under the impression that the first method was better, but now I am confused.
Any ideas? Thanks!