Reply to Re: __SELF__?

Your name:

Reply:


Posted by Chung Leong on 11/19/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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация