brodywx Posted February 28, 2007 Share Posted February 28, 2007 Hello, If I'm looping through a checkbox array, called itemFilter[], is it possible to get the id value from each checkbox. I'm very new to php so I'm struggling to figure this out. Here's my looping code I have right now: $itemFilter=$_POST['filterItem']; foreach ($itemFilter as $value) { echo "$value is checked"; } Link to comment https://forums.phpfreaks.com/topic/40541-getting-checkbox-id/ Share on other sites More sharing options...
brodywx Posted February 28, 2007 Author Share Posted February 28, 2007 right now all I know how to get it the name of the checkbox, but this is useless to me cause I'm using the name in a seperate javascript function. So how in the world can I get the checkbox id? Link to comment https://forums.phpfreaks.com/topic/40541-getting-checkbox-id/#findComment-196233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.