Skip to main content
This topic has been closed for replies.
Correct answer
There are several ways of passing variables from one page to the next. These generally are known as scoped variables. Scopes that address this issue are FORM, URL, SESSION, CLIENT and APPLICATION.

You have supplied a URL that contains URL scope variables. These can be found after the "?" in the URL, and have the format variableName=variableValue. So you have these variables: CategoryId, PageID, kw and LinkType. The page that is called often takes these variables and their values and performs a database query. In your specific case, the database is being queried for Jackets.

FORM variables (<INPUT> tag) produce form fields that are one of two types: TYPE="text" and TYPE="hidden". The are coded on the page where your form is laid out. TYPE="text" displays a text box into which the user can enter data. TYPE="hidden" does not display a text box. Both of these pass the name and value of the form field.

A discussion about ColdFusion variables and the advantages of each of these variable scopes can be found at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Variables_01.html#1144176

1 reply

Correct answer
September 2, 2007
There are several ways of passing variables from one page to the next. These generally are known as scoped variables. Scopes that address this issue are FORM, URL, SESSION, CLIENT and APPLICATION.

You have supplied a URL that contains URL scope variables. These can be found after the "?" in the URL, and have the format variableName=variableValue. So you have these variables: CategoryId, PageID, kw and LinkType. The page that is called often takes these variables and their values and performs a database query. In your specific case, the database is being queried for Jackets.

FORM variables (<INPUT> tag) produce form fields that are one of two types: TYPE="text" and TYPE="hidden". The are coded on the page where your form is laid out. TYPE="text" displays a text box into which the user can enter data. TYPE="hidden" does not display a text box. Both of these pass the name and value of the form field.

A discussion about ColdFusion variables and the advantages of each of these variable scopes can be found at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Variables_01.html#1144176