You'd only have a zero if it was unchecked, and a 1,0 if it was
checked, I think.
Can't use a radio? ;-)
On 10/27/06, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> but will that handle if the user uncheck a previously checked value?
>
> On 10/27/06, Mike Tangorre <[EMAIL PROTECTED]> wrote:
> >
> > From: "Paul Ihrig" <[EMAIL PROTECTED]>
> > > <input type="checkbox" name="faddCherry" <cfif
> > ("#getIceCream.addCherry#"
> > > EQ
> > > 1)>checked="checked"</cfif> value="1">
> > > <cfif ("#getIceCream.addCherry#" NEQ 1)>
> > > <input type="hidden" name="faddCherry" value="0">
> > > </cfif>
> >
> > <cfif getIceCream.addCherry eq 1>
> >
> > <input type="checkbox" name="faddCherry" checked="checked" value="1" />
> >
> > <cfelse>
> >
> > <input type="hidden" name="faddCherry" value="0">
> >
> > </cfif>
> >
> >
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:218554
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5