but at the same time...i would...

<cfif isDefined(side_1_comments) and len(side_1_comments)>
  <input type="text" size="95" name="side_1_comments"
value="#trim(side_1_comments)#" maxlength="100">
<cfelse>
  <input type="text" size="95" name="side_1_comments" maxlength="100">
</cfif>

just to double check, and its more read-able :)

hth
tony

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:28 AM
To: CF-Talk
Subject: RE: CFIF within input

ur missing a ">"

<input type="text" size="95" name="side_1_comments" maxlength="100" <CFIF
trim(side_1_comments) NEQ ""> value="#trim(side_1_comments)#"</cfif>>

try that.

-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:21 AM
To: CF-Talk
Subject: CFIF within input

I want to display text in a input box's value field if there is any info in
the database. The code I'm trying is:

<input type="text" size="95" name="side_1_comments" maxlength="100" <CFIF
trim(side_1_comments) NEQ "" value="#trim(side_1_comments)#"</cfif>>

But I get an error. It seems simple, but I must be missing something I can't
see.

Any suggestion please? Thanks.

Robert O.
HWW
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to