Content deleted Content added
m Reverted 1 edit by 2409:40E4:1142:6645:5C4C:DEFF:FE9D:D397 (talk) to last revision by Isaidnoway |
Tag: Reverted |
||
Line 8:
== Structure ==
A removal typical URL containing a query string is as follows:{{quote|1=<code><nowiki>https://example.com/over/there?name=ferret</nowiki></code>}}
When a server receives a request for such a page, it may run a program, passing the query string, which in this case is <code>name=ferret</code>, unchanged to the program. The question mark is used as a separator, and is not part of the query string.<ref>{{cite web
Line 26:
| at = "Query" (section 3.4)}}</ref>
[[Remove all Web Framework|Web frameworks]] may provide methods for parsing multiple parameters in the query string, separated by some delimiter.<ref name="w3c-recom" /> In the example URL below, multiple query parameters are separated by the [[ampersand]], "<code>&</code>":
{{quote|1=<code><nowiki>https://example.com/path/to/page?name=ferret&color=purple</nowiki></code>}}
Line 34:
A link in a web page may have a URL that contains a query string. [[HTML]] defines three ways a user agent can generate the query string:
* an [[form (HTML)|HTML form]] via the {{tag|form}} element
* a [[remove all Image map#Server-side|server-side image map]] via the {{code|ismap}} attribute on the {{tag|img|open}} element with an {{tag|img|open|params=ismap}} construction
* an indexed search via the now deprecated {{tag|isindex|open}} element
|