thanks dave
Dave Watts wrote:
> > The following code is only valid ( not producing error) if I have
> > <input> tag instead of <cfinput> but i need the cfinput for
> > validation.
> > Any ppl got any idea?
> >
> > <cfinput type="text" name="permainan" size="25" maxlength="40"
> > <cfif NewRecord IS "No">
> > <cfoutput query="matchDetail">
> > value="#Trim(matchDetail.permainan)#"</cfoutput>
> > </cfif>
> > >
>
> You can't nest a CFIF or a CFOUTPUT tag within a CFINPUT tag. You could
> solve this problem by executing the conditional logic before the CFINPUT:
>
> <CFIF NewRecord IS "No">
> <CFSET MyValue = Trim(MatchDetail.Permainan)>
> <CFELSE>
> <CFSET MyValue = "">
> </CFIF>
>
> <CFINPUT ... VALUE="#MyValue#">
>
> Alternatively, you could use the IIF function in the VALUE parameter of the
> CFINPUT to build your conditional logic.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
Joshua Yip
ICQ : 8657630
IVOX TECHNOLOGY
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.