John,
Because you have :
<input type="radio" name="Checked" value="Yes">Yes
<input type="radio" name="Checked" value="No">No
the Checked form field will always exist with either "Yes" or "No" as its value
depending on which radio button is selected.
> <!--- Output the mailing list value from the radio button --->
> <cfif IsDefined('form.Checked')>
> <b>Radio Button:</b> <cfoutput>#Checked#</cfoutput>
> <cfelse>
> <b>Radio Button:</b> Not Entered! <br>
> </cfif>
>
IsDefined("form.Checked") will always be true, just the value will be
different.
You can actually do away with this condition and simply put :
<b>Radio Button:</b> <cfoutput>#FORM.Checked#</cfoutput>
as the Form.Checked will either be yes, no or "not entered".
Hope that helps
Regards
Stephen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1539
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54