i have a update form, all fields are being updated properly , accept my check box.. in my database, if my check box is checked, it doesn't show in my form that is checked, its always uncheked,
here is my code (related to check box only)
<cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "form1">
<cfquery datasource="Evanauto">
UPDATE Usedcars
CarSold=
<cfif IsDefined("FORM.CarSold") AND #FORM.CarSold# NEQ "">
'#FORM.CarSold#'
<cfelse>
NULL
</cfif>
<!--- my form codes --->
<input type="checkbox" name="CarSold" value= "<cfoutput>#recordset1.CarSold#</cfoutput>">
thanks,
here is my code (related to check box only)
<cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "form1">
<cfquery datasource="Evanauto">
UPDATE Usedcars
CarSold=
<cfif IsDefined("FORM.CarSold") AND #FORM.CarSold# NEQ "">
'#FORM.CarSold#'
<cfelse>
NULL
</cfif>
<!--- my form codes --->
<input type="checkbox" name="CarSold" value= "<cfoutput>#recordset1.CarSold#</cfoutput>">
thanks,