prometheos Posted March 25, 2010 Share Posted March 25, 2010 Hi wasn't sure where to post this as it contains html, js and php, i have 2 arrays of checkboxes and i want it so that when i check 1, the same index of the other 1 is unchecked... any ideas how to do this? here's the way i have it set up? if(($xml->item[$n-1]->requested->confirmed == "") &&($xml->item[$n-1]->requested->by != "") ){ //only display checkboxes if the items havnt been confirmed and theres a request to carry them echo '<td><center><input type="checkbox" name="confirmItems[]" value="'.$itemString.' onCheck = " " "/></center></td>'; echo '<td><center><input type="checkbox" name="denyItems[]" value="'.$itemString.'"/></center></td>'; } This is in a foreach loop... any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/196489-oncheck-in-php/ 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.