Page 2 of 2
Posted: Mon Jul 31, 2006 6:24 pm
by bokehman
$PHP_SELF only works if register globals is set to on (almost never these days).
Posted: Mon Jul 31, 2006 6:28 pm
by Luke
bokehman wrote:$PHP_SELF only works if register globals is set to on (almost never these days).
and if it is turned on... it shouldn't be.
Posted: Mon Jul 31, 2006 7:44 pm
by RobertGonzalez
Something else to consider, if you leave the form action value blank, the form should post back to itself, so the action value is not necessary. There are also other way to get the page name rather than $_SERVER['PHP_SELF'], but a lot of that was already covered in this, and many other, thread(s).
Posted: Mon Jul 31, 2006 8:06 pm
by Luke
leaving the form blank doesn't work in all browsers (or so I was told)
Posted: Mon Jul 31, 2006 8:15 pm
by Benjamin
Yargh..
The Pirate wrote:Use a # sign, don't leave it blank.
Posted: Tue Aug 01, 2006 5:19 am
by Ollie Saunders
A dot (.) returns it to the IndexDocument of the current directory.