What is a parameter?

Parameters used in the web industry refer to URL parameters.
URL parameters are instructions that a web browser sends to a web
server
, and the server returns data to the browser that matches the instructions.
If you’re browsing the Internet, you’ve probably seen URLs with a “?” at the end. For example, the URL is “https://aaaaaa.co.jp?color=red”. In this example, the “color” part after the “?” is the parameter name, and the “red” part is the parameter value.

The server receives the individually input parameter names and values and returns the data “red in the color group” from the database to the browser.

Passive and active parameters
URL parameters are divided into two types: passive parameters and active parameters.

A passive parameter is a type of parameter that cannot be influenced externally. Passive parameters do not change the content whether URL parameters are included or not. This is called a static page.

An active parameter is a type of parameter that changes the content of the web content by sending the parameter. This is called a dynamic page, and is a parameter often used for e-commerce sites.

For example, let’s say there is a store called “clothes” and the URL of the store’s website is “https//clothes.com”. Opening this URL will take you to the top page of the store’s website, but if you add the parameter “?shirt=yellow” at the end, the yellow shirt from the store’s website will be displayed.

In this way, active parameters change the content depending on external URL parameters.

Reference article


