Checking Get variable exists
am 17.09.2007 18:08:05 von ampelosoHello,
How do I check to see if a GET varaible exists?
This is giving me an error message.
if (isset !($_GET['id']))
{die('You must Have a Key to get in');
}
Thanks
Hello,
How do I check to see if a GET varaible exists?
This is giving me an error message.
if (isset !($_GET['id']))
{die('You must Have a Key to get in');
}
Thanks
On Sep 17, 12:08 pm, Mike
> Hello,
> How do I check to see if a GET varaible exists?
> This is giving me an error message.
>
> if (isset !($_GET['id']))
> {die('You must Have a Key to get in');
>
> }
>
> Thanks
How about:
if(!isset($_GET['id']))
"Mike"
news:1190045285.372415.277150@57g2000hsv.googlegroups.com...
> Hello,
> How do I check to see if a GET varaible exists?
> This is giving me an error message.
>
> if (isset !($_GET['id']))
> {die('You must Have a Key to get in');
> }
well, is the error "you must have a key to get in"?
just tac this onto the end your the url:
?id=qwerty
you shouldn't get that error at that point. do you understand the difference
between $_GET, $_POST, $_REQUEST?
"ZeldorBlat"
news:1190045690.793118.109970@n39g2000hsh.googlegroups.com.. .
> if(!isset($_GET['id']))
lol...i didn't even see that. chuckle.