Discussion:
FORM - empty ACTION
(too old to reply)
Agoston Bejo
2004-12-03 14:25:37 UTC
Permalink
Hello,

in IE, if you leave the ACTION attribute empty, the form submits to the
current page. Can this be relied upon as a standard behavior?

Thx,
Agoston
Tim Slattery
2004-12-03 17:45:17 UTC
Permalink
Post by Agoston Bejo
Hello,
in IE, if you leave the ACTION attribute empty, the form submits to the
current page. Can this be relied upon as a standard behavior?
I don't think so. The W3C standard for the FORM tag is at
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.3. It seems
to say that "action" is mandatory.

Mozilla Firefox seems to behave the same way as IE in this case. But
since the standard makes the tag mandatory, I suppose a browser might
issue an error message, or simply refuse to submit the form at all if
the "action" attribute wasn't there.
--
Tim Slattery
MS MVP(DTS)
***@bls.gov
Loading...