ok I'm trying to do something I thought was simple but it won't work. I just have a simple control structure and if the variable is blank I want one thing to happen if its not I want another to happen. Heres an example of my code.
if($var == "")
{
echo "Your name is $var";
}
else
{
echo "You did not enter a name.";
}
Its executing what's in the if statement no matter what. Any ideas what the problem is?