EchoFool Posted June 21, 2009 Share Posted June 21, 2009 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? Quote Link to comment Share on other sites More sharing options...
.josh Posted June 21, 2009 Share Posted June 21, 2009 you can do if($_GET) {...} or if(count($_GET) > 0) {...} Quote Link to comment Share on other sites More sharing options...
M.O.S. Studios Posted June 21, 2009 Share Posted June 21, 2009 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()){....} Quote Link to comment Share on other sites More sharing options...
EchoFool Posted June 21, 2009 Author Share Posted June 21, 2009 Thanks guys! Works a treat! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.