Well, give the submit button a name in the HTML form so that it's a submitted entity, like so:
<input type="submit" name="submit" value="Submit Form" />
and then use [man]isset[/man] to verify that it was sent. If not, then the user did not submit the form yet and it should be not processed.
Another thing you might look into is using [man]empty[/man] to test whether key elements have been given values.