Hi,
When I try to submit a form with radio buttons, and none of them are selected, I get an error when I try to insert it into the DB. I want to allow my users the option of not selecting a radio button, and to insert a default value if so.
Can i use something like this in the INSERT page?
<cfif NOT IsDefined("#form.strStrike#"
>
<cfset "#form.strStrike#"=-9>
</cfif>
strStrike is the name of the radio button.
and the rest of the SQL insert statements follow here...
Thanks
ahksar
When I try to submit a form with radio buttons, and none of them are selected, I get an error when I try to insert it into the DB. I want to allow my users the option of not selecting a radio button, and to insert a default value if so.
Can i use something like this in the INSERT page?
<cfif NOT IsDefined("#form.strStrike#"
<cfset "#form.strStrike#"=-9>
</cfif>
strStrike is the name of the radio button.
and the rest of the SQL insert statements follow here...
Thanks
ahksar