I trying to insert information in a SQL database. A client can either select an option from a drop-down box and click add and it will be inserted into the database or type the information into text boxes and insert it.
I am also using a radio option box (SelectSubOption) to specify which method the customer will use.
Here's the code I have but it doesn't seem to work.
<CFIF #SelectSubOption# IS "New">
<CFINSERT datasource="builder" tablename="SubOptionsDetails" dbtype="ODBC" formfields="SystemID, MainOptionID, Qty, VN_ComboKey, SubOptionDescription, DefaultValue, Visible, SubOptionSortOrder">
<CFELSEIF #SelectSubOption# IS "Existing">
<CFINSERT datasource="builder" tablename="SubOptionsDetails" dbtype="ODBC" formfields="SystemID, MainOptionID, Qty, SelectVN_ComboKey, SelectSubOptionDescription, DefaultValue, Visible, SubOptionSortOrder">
</CFIF>
I am also using a radio option box (SelectSubOption) to specify which method the customer will use.
Here's the code I have but it doesn't seem to work.
<CFIF #SelectSubOption# IS "New">
<CFINSERT datasource="builder" tablename="SubOptionsDetails" dbtype="ODBC" formfields="SystemID, MainOptionID, Qty, VN_ComboKey, SubOptionDescription, DefaultValue, Visible, SubOptionSortOrder">
<CFELSEIF #SelectSubOption# IS "Existing">
<CFINSERT datasource="builder" tablename="SubOptionsDetails" dbtype="ODBC" formfields="SystemID, MainOptionID, Qty, SelectVN_ComboKey, SelectSubOptionDescription, DefaultValue, Visible, SubOptionSortOrder">
</CFIF>