I know this question might sound a little cheesy but this is the first time I am implementing a "tagging" feature to one of my project sites and I want to make sure I do everything right.
Right now, I am using the very same tagging system as in SO.. space seperated, dash(-) combined multiple words. so when I am validating a user-input tag field I am checking for
- Empty string (cannot be empty)
- Make sure the string doesnt contain particular letters (suggestions are welcommed here..)
- At least one word
- if there is a space (there are more than one words) split the string
- for each splitted, insert into db
I am missing something here? or is this roughly ok?