head
Why cant I use cfif inside of a cfinput tag?
/head
cfset this.Value=I know i cant use this.
cfform method=post action=nocfif.cfm
!--- it will not work like this ---
cfinput type=text name=myFormElement value=cfif
isDefined(this.Value)#this.Value#/cfif
!--- or like this ---
cfinput
: Friday, April 26, 2002 8:48 AM
To: CF-Talk
Subject: Re: CFFORM and CFIF Part II
head
Why cant I use cfif inside of a cfinput tag?
/head
cfset this.Value=I know i cant use this.
cfform method=post action=nocfif.cfm
!--- it will not work like this ---
cfinput type=text name=myFormElement value
what is the error that you r getting on the browser?
-Original Message-
From: Jaye Morris [SMTP:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 6:18 PM
To: CF-Talk
Subject: Re: CFFORM and CFIF Part II
head
Why cant I use cfif inside of a cfinput tag?
/head
cfset
: Friday, April 26, 2002 8:01 AM
To: CF-Talk
Subject: RE: CFFORM and CFIF Part II
what is the error that you r getting on the browser?
-Original Message-
From: Jaye Morris [SMTP:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 6:18 PM
To: CF-Talk
Subject: Re: CFFORM and CFIF Part
On 4/26/02, Jaye Morris penned:
!--- the only work around is this ---
cfif isDefined(this.Value)
cfinput type=text name=myFormElement value=#this.Value#
cfelse
cfinput type=text name=myFormElement value=
/cfif
/cfform
Or
cfparam name=this.value value=
cfinput type=text name=myFormElement
To: CF-Talk
Subject: RE: CFFORM and CFIF Part II
be cause you are putting it inside the quotes so it thinks it's a
literal
string?? shouldn't it be(i think, please check)
cfinput type=text name=myFormElement value=cfif
isDefined(this.Value)#this.Value#cfelse/cfif
-Original Message-
From
6 matches
Mail list logo