|
Posted by Chung Leong on 11/10/67 11:47
Alan Little wrote:
> I think the uses I listed are pretty rational.
Not to be overly critical, but you just cited PHP_SELF's function as
its ration d'etre. We all know it let you figure out what URI caused
the script to fire. The question is why you'd want to know that.
> How do you mean? I don't see how the browser enters into it.
Some people, myself include, like to put insert PHP_SELF into a form
tag's action attribute when the form submits back to the same script.
You could just as well leave attribute blank. But somehow it seems
kooky. The same with anchor tags. For linking to the current page but
with different GET parameters, one could just start the href attribute
with a question mark. Yet many people, myself include again, would
stick it PHP_SELF. It's driven by a sort of fear that the browser
wouldn't build the full URL from the relative parts correctly.
Navigation:
[Reply to this message]
|