brodywx Posted February 21, 2007 Share Posted February 21, 2007 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 More sharing options...
kenrbnsn Posted February 22, 2007 Share Posted February 22, 2007 Not with PHP. PHP has no knowledge of what is on the screen or even if the data it's processing came from a web browser. You might be able to do that with Javascript. Ken Link to comment https://forums.phpfreaks.com/topic/39565-getting-information-from-a-label/#findComment-190892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.