Jump to content

[SOLVED] Check if $_GET is set?


EchoFool

Recommended Posts

Is it possible to check if $_GET is set regardless of the bit after it ?

 

In shorter words as long as a $_GET isset no matter what the ['name'] might be that follows? IS that possible if so how do you do it?

 

I tried If(isset($_GET)){  but this doesn't work.. is there a wild card that can be used or something here?

Link to comment
https://forums.phpfreaks.com/topic/163069-solved-check-if-_get-is-set/
Share on other sites

i haven't tested this,

 

but I'm sure it will work

 

function getset{
              $return=FLASE;
              foreach($_GET as $set)
             {
               $true .= $set;
             }

             if(!is_null($true)){$return=TRUE;}
            return $return;
}

if(getset()){....}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.