I’m not quite sure how you’ll be using these but wouldn’t it make sense to concatenate the category ID with the name to make it unique?
<input type="text" name="<?php echo $category->term_id."-".$category->name; ?>" />
I’m not quite sure how you’ll be using these but wouldn’t it make sense to concatenate the category ID with the name to make it unique?
<input type="text" name="<?php echo $category->term_id."-".$category->name; ?>" />