You are here: Re: Where is form handler code? « PHP Programming Language « IT news, forums, messages
Re: Where is form handler code?

Posted by Erwin Moller on 02/03/06 19:36

Bent Stigsen wrote:

> Sjoerd wrote:
>> Erwin Moller:
>>
>>>I am unsure if it is correct to leave the action out.
>>>Why not fix it and put the right action-value in?
>>
>>
>> The action is a required attribute, according to the W3C HTML 4.01
>> specification. User-agents use the current page as the action, so
>> setting action to $_SERVER['PHP_SELF'] would make it work and
>> standards-compliant.
>>
>
> To elaborate a bit (or add to the confusion). Above should, not so
> obviously, be read as two separate statements, with a not so
> straightforward relation.
> PHP_SELF only contains the absolute path, not a full URI as specified
> in the mentioned W3C document, which further says "This attribute
> specifies a form processing agent. User agent behavior for a value
> other than an HTTP URI is undefined.".
> But as it is only a specification of a recommendation, the actual
> implementation in user-agents is chosen in the finest tradition of
> anarchism, leading to more or less convenient/sensible/ingenious
> solutions, which in a competing market(governed by greed), tends to,
> but certainly not always, conform with any common practice among the
> general public (aka end-users), which in turn may or may not be
> compliant to any would-like-to-be-normative specifications.
>
> Consequently, ergo and vis-a-vis dubious intentions and demands, much
> can be written in the action attribute, with the disappointing result:
> "it works".
>
>
> /Bent

LMAO!

Bent, I nominate your contribution for 'Weirdest post of the month', a not
so wellknown, but nevertheless considered important by me, trophy.

And since I am the jury too: Here you go! The trophy!

Thanks for good laugh. :P

Regards,
Erwin Moller

 

Navigation:

[Reply to this 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

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