Skip to main content
lovewebdev
Inspiring
December 29, 2008
Question

Stupid question - cannot dispay coldfusion variable??

  • December 29, 2008
  • 2 replies
  • 350 views
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??
This topic has been closed for replies.

2 replies

Inspiring
December 29, 2008
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.
lovewebdev
Inspiring
December 29, 2008
I think I figured it out. The only way to rewrite the variable is by using

cfset