brodywx Posted February 28, 2007 Share Posted February 28, 2007 Here's some example code of checkboxes I'm generating by an SQL query: <input type=checkbox name=filterItem[Regular] id="fi6554" onclick="javascript:SetChecked(this,'filterItem[6554]')"> <font size=-1><label for="fi6554"><b>Regular</b></label></font> <div class="indented"> <input type=checkbox name=filterItem[6554] id="fi6554" > <font size=-1><label for="fi6554">Future Member</label></font><br /> <input type=checkbox name=filterItem[6563] id="fi6563" > <font size=-1><label for="fi6563">Member</label></font><br /> </div> How do I determine which checkboxes the user has checked when they submit the form? I need to be able to create a dynamic sql script based on items they've selected. Link to comment https://forums.phpfreaks.com/topic/40593-please-help/ Share on other sites More sharing options...
jwk811 Posted February 28, 2007 Share Posted February 28, 2007 you will have to make the checkbox names into an array so each checkbox will have a unique value, you can use the now() function to determine when they submitted the form Link to comment https://forums.phpfreaks.com/topic/40593-please-help/#findComment-196421 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.