|
https://www.calendar.com?day=25&month=1&year=2024
?
” character. The part before the “?
” mark is the link and the part after the “?
” mark is data being passed to the link.www.calendar.com
and pass the dataday = 25 month = 1 year = 2024 |
calendar.com
is going to do with that data, but it’s reasonable to assume that it has something to do with the date “January 25, 2024.”?
” mark, followed by the actual query string, which is made up of name=value
data pairs, each separated by the “&
” character:https://www.calendar.com?day=25&month=1&year=2024
&
” character is commonly pronounced “and” in computer programming languages, so you can loosely think of that query string like this:? (pass the following data:) day = 25, and month = 1, and year = 2024 |
name=value
pairs show numerical values, but values can also contain numbers, characters, and symbols. The month value could just as easily have been either of these:month=jan
month=[January]
name=value
parameter. For example, let’s assume you have a URL, and you need to add this ClickMagick integration parameter:s1=[clickid]
?
” mark yet), you’ll need to create the query string by adding a “?
” mark followed by the new parameter:https://www.website.com?s1=[clickid]
?
” mark), you would add the new parameter to the end using the “&
” character:https://www.website.com?id=475&s1=[clickid]
%20
, colons with %3A
, and slashes with %2F
. Don’t be surprised if you see https://
encoded as https%3A%2F%2F
. Check out W3Schools.com’s complete list of URL encodings.&
” character itself will often be replaced with & amp;
. This creates some unusual-looking query strings, especially when you paste an otherwise normal-looking link into a Page Builder and you see your name=value
pairs separated by & amp;
entities when you view your page source. You can find an extensive list of these HTML entities at W3Schools.com.%##
and &entity;
encodings are when you do see them.https://www.calendar.com?day=&month=&year=
www.calendar.com
example, this might mean “display today” since an actual date is not specified. Using value-less parameters is quite common, so don’t let it confuse you if you see them.[query_string]
token. See the section on Passthrough Tokens in this article: