completeamateur Posted July 10, 2008 Share Posted July 10, 2008 Hi there, I'm designing a website where visitors will be able to record the football games they've attended. Ideally this will be done by toggling a checkbox displayed next to each game (see http://www.awayfans.co.uk/results/index.php?confederationID=7&countryID=4&divisionID=6&clubID=93&season=2006 for an example [no code behind checkboxes]). There may be up to 60-70 games displayed on a page. If a user has attended a game, they check the checkbox which will add an entry to a table containing the user ID and the game ID. When the checkbox is unchecked, it will remove the entry from the same table. My question is, should the table be updated when the checkbox is toggled (by submitting a unique form for each particular game using javascript) or should there be one form for all the matches with a submit button for the lot)??? I hope that makes sense. All suggestions appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/114107-big-form-little-form/ Share on other sites More sharing options...
Magestry Posted July 10, 2008 Share Posted July 10, 2008 It is your choice really, I would probably do the submit button one as I only have a very basic knowledge of php but if you can do the other one and it looks better, then do it! Your choice! Quote Link to comment https://forums.phpfreaks.com/topic/114107-big-form-little-form/#findComment-586716 Share on other sites More sharing options...
rmbarnes82 Posted July 10, 2008 Share Posted July 10, 2008 Hi, This is really a useabillity question. Most users would expect to check all the checkboxes they want, and then click on a submit button to save it. If they just check a box, how are they going to know that their selection has been saved? Unless you let them know it has they will assume your app is broken. Also, if you are going to submit one checkbox at a time, make sure you do it using ajax. If you don't the page has to be re rendered each time they check / uncheck a box which is very inefficient. Robin Quote Link to comment https://forums.phpfreaks.com/topic/114107-big-form-little-form/#findComment-586746 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.