ChrisB: form action=php_self?

Beitrag lesen

Hi,

muss man dieses php-self eigentlich schreiben oder kann man auch einfach nur form action="" schreiben?

HTML 4.01, 17.3 The FORM element:
->
Attribute definitions
action = uri
-> Relative URIs are resolved to full URIs using a base URI. [RFC1808], section 3, defines the normative algorithm for this process.

[RFC1808 "Relative Uniform Resource Locators"]

4.  Resolving Relative URLs
[...]
The following steps are performed in order:

Step 1: The base URL is established according to the rules of
           Section 3.  If the base URL is the empty string (unknown),
           the embedded URL is interpreted as an absolute URL and
           we are done.

Step 2: Both the base and embedded URLs are parsed into their
           component parts as described in Section 2.4.

a) If the embedded URL is entirely empty, it inherits the
              entire base URL (i.e., is set equal to the base URL)
              and we are done.

MfG ChrisB

--
„This is the author's opinion, not necessarily that of Starbucks.“