1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>FORM: Attributes</TITLE>
</HEAD>
<BODY>
<H1>FORM: <BR>Attributes</H1>
<HR><H2><A NAME="action">ACTION</A></H2>
<P>
Specifies the action URI for the form. The action URI of
a form defaults to the base URI of the document.
</P>
<H3>Value(s)</H3>
<CODE>CDATA</CODE>
<H3>Default Value</H3>
<STRONG>#IMPLIED</STRONG>
<HR><H2><A NAME="enctype">ENCTYPE</A></H2>
<p>
Specifies the media type used to encode the name/value
pairs for transport, in case the protocol does not
itself impose a format.
</p>
<p>
The default encoding for all forms is 'application/x-www-form-urlencoded'.
A form data set is represented in this media type as follows:
<ol>
<li>
The form field names and values are escaped: space
characters are replaced by `+', and then reserved characters
are escaped as per URL; that is, non-alphanumeric
characters are replaced by `%HH', a percent sign and two
hexadecimal digits representing the ASCII code of the
character. Line breaks, as in multi-line text field values,
are represented as CR LF pairs, i.e. `%0D%0A'.</li>
<li>
The fields are listed in the order they appear in the
document with the name separated from the value by `=' and
the pairs separated from each other by `&'. Fields with null
values may be omitted. In particular, unselected radio
buttons and checkboxes should not appear in the encoded
data, but hidden fields with VALUE attributes present
should.
<dl>
<dt>NOTE</dt>
<dd>
The URI from a query form submission can be
used in a normal anchor style hyperlink.
Unfortunately, the use of the `&' character to
separate form fields interacts with its use in SGML
attribute values as an entity reference delimiter.
For example, the URI `http://host/?x=1&y=2' must be
written `<a href="http://host/?x=1&#38;y=2">' or `<a
href="http://host/?x=1&amp;y=2">'.
<p>
HTTP server implementors, and in particular, CGI
implementors are encouraged to support the use of
`;' in place of `&' to save users the trouble of
escaping `&' characters this way.
</p>
</dd>
</dl></li>
</ol>
</p>
<H3>Value(s)</H3>
<CODE>CDATA</CODE>
<H3>Default Value</H3>
<STRONG>application/x-www-form-urlencoded</STRONG>
<HR><H2><A NAME="method">METHOD</A></H2>
<p>
Selects a method of accessing the action URI. The set of
applicable methods is a function of the scheme of the
action URI of the form.
</p>
<H3>Value(s)</H3>
<UL COMPACT>
<LI>GET</LI>
<LI>POST</LI>
</UL>
<H3>Default Value</H3>
<STRONG>GET</STRONG>
<HR><H2><A NAME="sdapref">SDAPREF</A></H2>
<p>
SDA/ICADD: Generated text prefix.
</p>
<H3>Value(s)</H3>
<CODE>CDATA</CODE>
<H3>Default Value</H3>
<STRONG>#FIXED = <Para>Form:</Para></STRONG>
<HR><H2><A NAME="sdasuff">SDASUFF</A></H2>
<p>
SDA/ICADD: Generated text suffix.
</p>
<H3>Value(s)</H3>
<CODE>CDATA</CODE>
<H3>Default Value</H3>
<STRONG>#FIXED = <Para>Form End.</Para></STRONG>
<HR>
Back to <A HREF="form.html"><STRONG>FORM</STRONG></A><P>
<HR>
<ADDRESS>
<A HREF="DTD-HOME.html">HTML 2.0 DTD</A>
</ADDRESS>
</BODY>
</HTML>
|