|
Posted by Alan Little on 10/25/67 11:47
Carved in mystic runes upon the very living rock, the last words of
Chung Leong of comp.lang.php make plain:
> Alan Little wrote:
>> > (In case you want to redirect a user to the same place
>> > where he came from after a form submit, using '#' as value for the
>> > action is as good and it doesn't has the potential security issues
>> > as $_SERVER['PHP_SELF'] has...)
>>
>> Another great reason for it to be a constant, like __FILE__.
>
> I think Tim is right about PHP_SELF not being terribly useful. I use
> it often enouogh myself, but can't really offer any rational reason to
> do so.
I think the uses I listed are pretty rational.
> It's some weird, subconscious mistrust of the browser, I think.
How do you mean? I don't see how the browser enters into it.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Navigation:
[Reply to this message]
|