Content deleted Content added
→Syntax: rewrite |
→[[URL Encoding]]: rewrite |
||
Line 27:
For each [[Field (computer science)|field]] of the form, the query string contains a pair parameter=value. Web forms may include fields that are not visible to the user, and these fields are included in the query string when the form is submitted.
==
The parameter=value pairs in the query string are encoded according to a schema known as [[URL Encoding]]. This is necessary because some characters cannot be part of a URL (for example, the space) and some other characters have a special meaning in a URL (for example, the character <code>#</code>, which is used to locate a point within a page).
In particular, [[RFC 1738]] specifies that “only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL”. All characters in a query string can be replaced by their hexadecimal value precedeed by the symbol <code>%</code>. For example, the equal sign can be replaced by <code>%3D</code>. All characters can be replaced this way; for the characters that are forbidden in a query string, this is not only possible but necessary.
The space character can be also represented by <code>+</code>.
== See also ==
|