Firstly you're missing a t in total, in the second part of the if statement. Also, you might want to try using $_GET to get variables from the URL (i'm assuming here though).
If all else fails, try echo'ing the variable, to see if it is in fact the value you think it is
