How to append category name to category ID in a form field

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; ?>" />

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)