biggieuk Posted May 20, 2008 Share Posted May 20, 2008 Hi all, I have a dynamic booking form, with two repeating tables to display a series of sessions and an extra category containing checkboxes. Table1 contains information about morning sessions ($query_sessionAM = "SELECT * FROM sessions WHERE ampm = 'am'", Table2 contains all afternoon sessions ($query_sessionPM = "SELECT * FROM sessions WHERE ampm = 'pm'". I have dynamically assigned each checkbox a name using "check" + 'sessionid' (e.g. Check12). My problem is that users should be able to select 1 or 2 choices from the morning sessions and 1 or 2 from the afternoon sessions. How can i make it so that a maximum of 2 sessions per table can be selected? This number may also be changed in future so a dynamic session choice would be an advantage. If anybody can give me guidance towards this then it would be much appreciated! thanks Link to comment https://forums.phpfreaks.com/topic/106527-dynamic-amount-of-selectable-checkbox-items/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.