Forum Moderators: coopster
better is to set some kind of token when the form loads, store it as a session variable and pass it in the form.
When the form is submitted, compare the session variable with the post variable, if they're different, then the POST has hit the page direct, possibly from a remote server.