Scopes are regions of a program or application in which a variable exists. Variables with the same name in different scopes are different variables.
see Variables Scope
see CGI Scope
see Application Scope
If you submitted a HTML form to the server, all named form fields will available in form scope. Let's say we have
<input type="text" name="username" />
then you can access it via
<cfset username = Form.username>
Every URL param can be accessed via the URL Scope like this:
/?view=userlist&page=2&start=u&group=admin&mode=full
According to this URL given output could be the following:
<cfoutput>
You're looking at #URL.view#'s page #URL.page# in #URL.mode# mode
<cfif structKeyExists(URL,'start')>
Start with letter: #URL.start#
</cfif>
</cfoutput>
See Server Scope
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.