Thread: $_get
View Single Post
Old 02-05-2008, 10:02 AM   #4 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by Andrew View Post
Try:
PHP Code:
if (count($_GET) > 1) { /* error */ 
$_GET is an array, so you have to use count() to count how many parts to the array there are.
Yea that's what I thought, thanks

Quote:
Originally Posted by xenon View Post
It's simple: just get the one you're interested the most in. If the user id is more important than the group, then take only the user id and ignore the rest. Or, you could go for showing the user an error, or perhaps even redirecting them somewhere. As long as the request is not done via the website urls, you can do what ever you want with the unwanted requests.
Huh? Code example?
__________________
Tanax is offline  
Reply With Quote