depends on the code you use in the target page
how do you determine whether the script has been called because of a submit or because the user entered the url by hand?
what about checking whether $_POST['name of inputfield'] exists?
isset and empty may be of help