Query Strings

By: Dusty Arlia
Published on Saturday, June 7, 2014, 04:02 PM
Last Updated on Tuesday, July 14, 2015 at 3:58 PM
Total Updates: 2

Query strings are the part of the URL after the question mark (?) that is used to pass information to the web server program. Here is an example of a query string in a URL:

http://whiterootmedia.com/request_form.php?first_name=John&last_name=Doe&action=Submit

The first_name=John&last_name=Doe&action=Submit part is the actual query string. It is made up of field-value pairs. An equal sign (=) comes after each field name and then followed by the value. Each field-value pair is seperated by an ampersand (&). The question mark is not part of the query string. It is used to separate the path to the requested resource from the query string.

Comments:

Ad:

Ad: