You are here: Re: submit form to same page « HTML « IT news, forums, messages
Re: submit form to same page

Posted by Michael Winter on 10/27/19 11:35

On 24/12/2005 21:01, David Dorward wrote:

> Shank wrote:
>
>> Is there any difference between: action="review.asp" and action=""
>> ...?
>
> The former submits to the relative URL "review.asp", the latter isn't
> a URL and the behaviour is undefined [...]

Not so.

Within a representation with a well defined base URI of

http://a/b/c/d;p?q

a relative reference is transformed to its target URI as
follows.

...

"" = "http://a/b/c/d;p?q"

-- 5.4 and 5.4.1, Reference Resolution Examples, RFC 3986

However, I do agree that it's best avoided in production as not all user
agents agree. For example, and as David said, IE will treat empty URIs
in links as "./", though it will act properly for FORM action attributes
with empty values.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

 

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

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