Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stupid question - cannot dispay coldfusion variable??

Participant ,
Dec 28, 2008 Dec 28, 2008
I can't get a variable to display, if I dont use cfparam to put a default value of blank in order to declare the value I get an error, and if I use cfparam this way each time a form is submitted the page reloads and the variable is empty due to the declaration??
TOPICS
Getting started
327
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 28, 2008 Dec 28, 2008
I think I figured it out. The only way to rewrite the variable is by using

cfset
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2008 Dec 29, 2008
LATEST
lovewebdev wrote:
> I think I figured it out. The only way to rewrite the variable is by using
>
> cfset

Yes <cfparam...> does not rewrite a variable. The documentation would
have a good explanation of this. The purpose of <cfparam...> is to
include implicit *if* logic. If this variable does not already exist
then create it with this value.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources