taufik-nurrohman / tag-picker

Better tags input interaction with JavaScript.
http://taufik-nurrohman.js.org/tag-picker/
MIT License
30 stars 3 forks source link

Concatenates When Post is Sent #2

Closed tghilardi closed 7 years ago

tghilardi commented 7 years ago

tags concatenate when you send a post request to the same page.

eg: test,test2 outputs testtest2 as one tag instead of two.

taufik-nurrohman commented 7 years ago

Yes, this plugin only for visualization, in the hope that, if JavaScript is disabled, user can keep adding tags as comma–separated list of words. You can later explode it in the backend:

$_POST['tags'] = explode(', ', $_POST['tags']);
taufik-nurrohman commented 7 years ago

Oh, so the tags becomes testtest2.

taufik-nurrohman commented 7 years ago

Do you have any screenshot or examples about this bug? I want to close this.