PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Form actions can be as simple as "#", which causes the page to post back to itself and anchor to the top of the page. You could also use basename(__FILE__) or basename($_SERVER['SCRIPT_FILENAME']), though the server variables are not always consistent across server platforms.
PHP_SELF should not be used unless you want to A) Clean the heck out of it before presenting it to view; or B) get your site hacked to bits.
Afaik, the only reason that we (as in phpdn) started using '#' as action was because someone reported that his (very exotic browser) crashed on ''... But that is at least 2 years ago...
I try to stay away from PHP_SELF, for the very reason that it needs to be cleaned. There are many ways to get at what you want without having to use it. In fact, if you are pumping everything through a front controller, you can literally build your own URL's using your content from the database.