If you're writing your form to be included into other pages then using the $PHP_SELF function will keep you from have to re-code the form for every place it is included.
But you need to have the code to process the form in the script that is itself (usually the same script that holds the form).
But it really doesn't matter where you have your forms post as long as the code to process them works the way you want it to.