Josh, unless the query is going to bring up more than one record try:

   <cfif NewRecord IS "NO">
       <cfoutput query="matchDetail">
           <cfinput type="text" name="permainan" size="25" maxlength="40"
                       value="#Trim(matchDetail.permainan)#">
       </cfoutput>
   <cfelse>
       <cfinput type="text" name="permainan" size="25" maxlength="40"
value="">
   </cfif>

If it is, then set a temp variable and with you cfoutput the query have it
append the results then give your cfinput that value.  Hope this helps.

Fred



----- Original Message -----
From: "Joshua Yip" <[EMAIL PROTECTED]>
To: "CF Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 24, 2000 2:41 PM
Subject: cfinput / input


> 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>
>     >
> --
> 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.

------------------------------------------------------------------------------
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.

Reply via email to