じゃ、なかったけ? (あーもー
if(gettype($_POST["a"]) != gettype($_POST["b"]))
でどよ。