johnmerlino Posted June 27, 2011 Share Posted June 27, 2011 Hey all, I deselect a checkbox. Then click update. Yet the only thing that gets passed in the post array are the items that are already checked previously. How can I pass the item that was unchecked into the array? Thanks for response Quote Link to comment https://forums.phpfreaks.com/topic/240492-deselecting-checkbox-gets-passed-in-post-array/ Share on other sites More sharing options...
MasterACE14 Posted June 27, 2011 Share Posted June 27, 2011 need to see some code. Quote Link to comment https://forums.phpfreaks.com/topic/240492-deselecting-checkbox-gets-passed-in-post-array/#findComment-1235215 Share on other sites More sharing options...
Pikachu2000 Posted June 27, 2011 Share Posted June 27, 2011 Unchecked checkboxes will not be present in the $_POST array. You'll need to compare the values that were present originally to the values that are sent back from the form to determine which are different from their original state. Quote Link to comment https://forums.phpfreaks.com/topic/240492-deselecting-checkbox-gets-passed-in-post-array/#findComment-1235226 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.