<input type = 'text' name = 'name_'<?php echo $rownum'?> id = <?php echo $category_id ?> /> $rownum++;
After submit I iterate through the text fields. While doing that I want to check whether this text’s id is in an array. So for that I want to get the id of the text field. How is it possible?
ids are not submitted with POST data. It’s not possible to get their value back.Use different
names that give you the information you need, since only they are submitted.