How to save only records that checkboxes are checked

h4ck3r_vnc

New Member
I have a form to add record for production. I need to pass value only data of "pdtn_szcl_id" and "pdtn_qty" that user has made the checked mark. Right now it can pass only the checked value of pdtn_szcl_id but not for "pdtn_qty". So could you please help me on this. Thank you very much.\[code\]<td colspan="2"> <% if rsPdtn_sizeColor.eof then call displayNotFoundRecord Else Do Until rsPdtn_sizeColor.Eof %> <div style="width:120px; float:left"><input type="checkbox" name="pdtn_szcl_id" value="http://stackoverflow.com/questions/12474890/<%=rsPdtn_sizeColor.fields.item("pdtn_szcl_id")%>">&nbsp;<%=rsPdtn_sizeColor.fields.item("pdtn_st_size")%> &nbsp;&nbsp;<%=rsPdtn_sizeColor.fields.item("pdtn_st_color")%></div> <div style="width:50px; float:left"><input type="text" name="pdtn_qty" value="http://stackoverflow.com/questions/12474890/<%=rsPdtn_sizeColor.fields.item("pdtn_st_qty_est")%>" size="7"></div> </div> <div style="clear:both"></div> <% rsPdtn_sizeColor.movenext Loop End if rsPdtn_sizeColor.movefirst %></td><td><input name="pdtn_note" value="http://stackoverflow.com/questions/12474890/<%=pdtn_note%>" size="39"></td>\[/code\]
 
Back
Top