Query string



         


A query string is the part of a URL that conveys parametric data to the server.

[Top]

Syntax

The basic syntax is ?parameter1=value1&parameter2=value2 . . .


[Top]

URL Encoding

Spaces, ampersands, equal signs, and many other characters could cause trouble with the URL and the query string. Therefore the value in each parameter-value pair is URL-Encoded. This is a process by which each of these troublesome characters is converted into a numeric represenctation.

'%2D' is one such example.

Therefore, %2D is the minus sign, and %25 is the percent character.

[Top]

Quirks

[Top]

See also

Email Attachments

[Top]




  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License