macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: (beginner) Coldfusion: variable to change language

Subject: Re: (beginner) Coldfusion: variable to change language
From: Ian Skinner <iskinner@xxxxxxxxxxx>
Date: Thu, 31 Jul 2008 06:26:12 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion


CF_output wrote:
It depends what type of scope the variable it is, but in general you can change 
the value of a variable using cfset.

<cfset language = "new language">

And since you want that to happen when a user clicks a link the common way would be something like this.

<cfset language = url.language>

With links something like this.

<a href="aPage.cfm?language=klingon">Klingon</a>
<a href="aPage.cfm?language=Swahili">Swahili</a>

<Prev in Thread] Current Thread [Next in Thread>