I\'m pretty sure this is a simple fundamental flaw in my newb PHP knowledge, but I was surprised when the following happened:
if($result === "email") will do the trick but personally I would never go this way.
if($result === "email")