Jump to content

getting information from a label


brodywx

Recommended Posts

Hi all,

 

I have a bunch of dynamically generated checkboxes with name=filterItem[]. For each checkbox I'm creating a label.

When the form is submitted I loop through all the checkboxes using this code:

 

$itemFilter=$_POST['filterItem'];

foreach ($itemFilter as $value)

{

    echo "$value is checked";

}

 

Is there any way I can get the text value from the <label> I created for the text box?

Link to comment
https://forums.phpfreaks.com/topic/39565-getting-information-from-a-label/
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.