Mokaka
07-14-2009, 07:23 AM
Hi Good people
I have the form ,users check many checkboxes they want based on the question they want to submit,I want to store values of the checkbox they chose as numbers,ie I have checkbox from one to ten,so if they have chosen one to five ,I have to store those values in the database.
[code]
<li class="file"><input type="checkbox" name="txtIncident" value="<%=Node.iCategoryId%>" class="treeview"><font size="-1" color="navy"><%=Node.Category_Desc%><%=Node.iCategoryId%></font>
SQLStmt = "INSERT INTO table (iId, iCategoryId) SELECT '" &iId& "', CATEGORY_NO FROM n_table WHERE CATEGORY_NO IN ('"&request.form("txtIncident"
[End code]
or some one can help me on how to insert multiple checkbox into the database in ASP
I have the form ,users check many checkboxes they want based on the question they want to submit,I want to store values of the checkbox they chose as numbers,ie I have checkbox from one to ten,so if they have chosen one to five ,I have to store those values in the database.
[code]
<li class="file"><input type="checkbox" name="txtIncident" value="<%=Node.iCategoryId%>" class="treeview"><font size="-1" color="navy"><%=Node.Category_Desc%><%=Node.iCategoryId%></font>
SQLStmt = "INSERT INTO table (iId, iCategoryId) SELECT '" &iId& "', CATEGORY_NO FROM n_table WHERE CATEGORY_NO IN ('"&request.form("txtIncident"
[End code]
or some one can help me on how to insert multiple checkbox into the database in ASP