Jump to content

getting checkbox id


brodywx

Recommended Posts

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

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.