Jump to content

onCheck in PHP


prometheos

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/196489-oncheck-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.