Please see my comments to the question. You probably use the same page for showing the form and for showing the result of post. You just need to design your code to appropriately take these both possibilities into account.
In particular, you can use the very fact that
$_POST["someKey"]
is undefined by testing it:
http://php.net/manual/en/function.isset.php[
^].
—SA