Am new to PHP and figure there's something I'm missing.
a$=$_GET["somedata"];
if ($a="cat") { do something }
The problem I'm having here, is regardless of what is passed, the if statement above always returns true and when I check the value of a$ after the if statement is called, I see that a=NULL.
What am I missing here?
a$=$_GET["somedata"];
if ($a="cat") { do something }
The problem I'm having here, is regardless of what is passed, the if statement above always returns true and when I check the value of a$ after the if statement is called, I see that a=NULL.
What am I missing here?