---
title: Querystring
description: "A typical URL containing a query string is as follows: http://server/path/program?query_string When a server receives a request for such a page, it runs a program (if configured to do so), passing the"
---

[Skip to content](https://help.linktrust.com/en/knowledge/lead-gen/querystring#main-content)

English

Show submenu for translations

[Customer portal](https://help.linktrust.com/portal?hsLang=en)

![lt-logo.png\]](https://help.linktrust.com/hs-fs/hubfs/lt-logo.png?height=40&name=lt-logo.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Customer portal](https://help.linktrust.com/portal)
- Contact us

 Contact us

 Hi, Welcome to the LinkTrust Help Center.

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.linktrust.com/en/knowledge?hsLang=en)
2. [Lead Gen](https://help.linktrust.com/en/knowledge/lead-gen?hsLang=en)

# Querystring

A typical URL containing a query string is as follows:

http://server/path/program?query\_string

When a server receives a request for such a page, it runs a program (if configured to do so), passing the query\_string unchanged to the program. The question mark is used as a separator and is not part of the query string.A link in a web page may have a URL that contains a query string. However, the main use of query strings is to contain the content of an HTML form, also known as web form. In particular, when a form containing the fields field1, field2, field3 is submitted, the content of the fields is encoded as a query string as follows:

field1=value1&field2=value2&field3=value3...

- The query string is composed of a series of field-value pairs.
- The field-value pairs are each separated by an equal sign.
- The series of pairs is separated by the ampersand, '&'.

You can use the fields to create arrays of values. In which case the syntax is:

 field\[\]=value1&field\[\]=value2&field\[\]=value3...  

This will create an array, field with 3 values. You can also add the keys yourself in the square brackets if required.For each field of the form, the query string contains a pair field=value. Web forms may include fields that are not visible to the user; these fields are included in the query string when the form is submitted.This 'name then equal sign then value then ampersand' convention is a W3C recommendation. They also provide a further appendix entry that recommends the use of a semicolon instead of an ampersand.Technically, the form content is only encoded as a query string when the form submission method is GET. The same encoding is used by default when the submission method is POST, but the result is not sent as a query string, that is, is not added to the action URL of the form. Rather, the string is sent as the body of the request.Security

A URL query string allows for flexibility in retrieving data from a web server and possibly from the database used to populate pages for that web server. A read only data store, such as a weather mapping service, is one example where URL query strings can be used with great flexibility.In some circumstances, a URL query string may expose security issues because it can be edited by a user to retrieve data that they do not have access to. In particular, a URL query string containing a username and password could be used with a dictionary attack to guess at valid login credentials to a particular web site. Most secure webservers use at least MD5 hash checking, or more powerful encoding methods to validate all given strings.

 

You can[request a demo](https://linktrust.com/request-demo/) to see LinkTrust up close and experience how it can help you, or[start your free 14-day trial](https://linktrust.com/free-trial/) now.

 

Need help with this feature or have questions? You can contact our support team at [support@linktrust.com](mailto:support@linktrust.com)

 

- [Advertiser Center](https://help.linktrust.com/en/knowledge/advertiser-center?hsLang=en)
- [Affiliate Center](https://help.linktrust.com/en/knowledge/affiliate-center?hsLang=en)
- [Affiliate Settings](https://help.linktrust.com/en/knowledge/affiliate-settings?hsLang=en)
- [API's](https://help.linktrust.com/en/knowledge/apis?hsLang=en#main-content)

    - [API v1 Framework](https://help.linktrust.com/en/knowledge/apis?hsLang=en#api-v1-framework)
    - [Version 2 - Affiliate](https://help.linktrust.com/en/knowledge/apis?hsLang=en#version-2-affiliate)
    - [Version 2 - Partner](https://help.linktrust.com/en/knowledge/apis?hsLang=en#version-2-partner)
- [Campaign Settings](https://help.linktrust.com/en/knowledge/campaign-settings?hsLang=en#main-content)

    - [Advertise - Affiliates](https://help.linktrust.com/en/knowledge/campaign-settings?hsLang=en#advertise-affiliates)
- [FAQs](https://help.linktrust.com/en/knowledge/faqs?hsLang=en#main-content)

    - [Pixel/Conversion Tracking](https://help.linktrust.com/en/knowledge/faqs?hsLang=en#pixel-conversion-tracking)
    - [Affiliates](https://help.linktrust.com/en/knowledge/faqs?hsLang=en#affiliates)
    - [Getting Started](https://help.linktrust.com/en/knowledge/faqs?hsLang=en#getting-started)
    - [General Questions](https://help.linktrust.com/en/knowledge/faqs?hsLang=en#general-questions)
- [Lead Gen](https://help.linktrust.com/en/knowledge/lead-gen?hsLang=en)
- [MarketPlace](https://help.linktrust.com/en/knowledge/marketplace?hsLang=en#main-content)

    - [Shopping for Offers](https://help.linktrust.com/en/knowledge/marketplace?hsLang=en#shopping-for-offers)
- [Partner (Admin) Center](https://help.linktrust.com/en/knowledge/partner-admin-center?hsLang=en)
- [Reporting](https://help.linktrust.com/en/knowledge/reporting?hsLang=en)
- [Tokens](https://help.linktrust.com/en/knowledge/tokens?hsLang=en)
- [Videos](https://help.linktrust.com/en/knowledge/videos?hsLang=en#main-content)

    - [Features](https://help.linktrust.com/en/knowledge/videos?hsLang=en#features)
    - [Lead Generation](https://help.linktrust.com/en/knowledge/videos?hsLang=en#lead-generation)
    - [Product Updates](https://help.linktrust.com/en/knowledge/videos?hsLang=en#product-updates)
- [What's New?](https://help.linktrust.com/en/knowledge/whats-new?hsLang=en#main-content)

    - [2022](https://help.linktrust.com/en/knowledge/whats-new?hsLang=en#2022)
    - [2023](https://help.linktrust.com/en/knowledge/whats-new?hsLang=en#2023)
- [3rd Party Integrations](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#main-content)

    - [Affiliate Payment](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#affiliate-payment)
    - [Email Compliance](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#email-compliance)
    - [Fraud Prevention Tools](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#fraud-prevention-tools)
    - [Offer Listing](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#offer-listing)
    - [Pay-Per-Call](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#pay-per-call)
    - [TrackDrive](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#trackdrive)
    - [Stripe](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#stripe)
    - [eCommerce](https://help.linktrust.com/en/knowledge/3rd-party-integrations?hsLang=en#ecommerce)

# linktrust.com

Help Center

Copyright © 2026, linktrust.com